function Ly(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function Ar(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var wp={exports:{}},xs={},Sp={exports:{}},z={};/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Vo=Symbol.for("react.element"),Oy=Symbol.for("react.portal"),Iy=Symbol.for("react.fragment"),_y=Symbol.for("react.strict_mode"),Dy=Symbol.for("react.profiler"),Vy=Symbol.for("react.provider"),Fy=Symbol.for("react.context"),zy=Symbol.for("react.forward_ref"),By=Symbol.for("react.suspense"),Uy=Symbol.for("react.memo"),$y=Symbol.for("react.lazy"),_c=Symbol.iterator;function Wy(e){return e===null||typeof e!="object"?null:(e=_c&&e[_c]||e["@@iterator"],typeof e=="function"?e:null)}var Tp={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Cp=Object.assign,Ep={};function jr(e,t,n){this.props=e,this.context=t,this.refs=Ep,this.updater=n||Tp}jr.prototype.isReactComponent={};jr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};jr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Pp(){}Pp.prototype=jr.prototype;function au(e,t,n){this.props=e,this.context=t,this.refs=Ep,this.updater=n||Tp}var lu=au.prototype=new Pp;lu.constructor=au;Cp(lu,jr.prototype);lu.isPureReactComponent=!0;var Dc=Array.isArray,bp=Object.prototype.hasOwnProperty,uu={current:null},kp={key:!0,ref:!0,__self:!0,__source:!0};function Np(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)bp.call(t,r)&&!kp.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1>>1,$=N[O];if(0>>1;Oo(Gn,D))We<$&&0>o(vn,Gn)?(N[O]=vn,N[We]=D,O=We):(N[O]=Gn,N[$e]=D,O=$e);else if(We<$&&0>o(vn,D))N[O]=vn,N[We]=D,O=We;else break e}}return L}function o(N,L){var D=N.sortIndex-L.sortIndex;return D!==0?D:N.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,d=null,f=3,g=!1,w=!1,x=!1,S=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(N){for(var L=n(u);L!==null;){if(L.callback===null)r(u);else if(L.startTime<=N)r(u),L.sortIndex=L.expirationTime,t(l,L);else break;L=n(u)}}function T(N){if(x=!1,m(N),!w)if(n(l)!==null)w=!0,V(C);else{var L=n(u);L!==null&&fe(T,L.startTime-N)}}function C(N,L){w=!1,x&&(x=!1,v(P),P=-1),g=!0;var D=f;try{for(m(L),d=n(l);d!==null&&(!(d.expirationTime>L)||N&&!U());){var O=d.callback;if(typeof O=="function"){d.callback=null,f=d.priorityLevel;var $=O(d.expirationTime<=L);L=e.unstable_now(),typeof $=="function"?d.callback=$:d===n(l)&&r(l),m(L)}else r(l);d=n(l)}if(d!==null)var K=!0;else{var $e=n(u);$e!==null&&fe(T,$e.startTime-L),K=!1}return K}finally{d=null,f=D,g=!1}}var b=!1,E=null,P=-1,R=5,j=-1;function U(){return!(e.unstable_now()-jN||125O?(N.sortIndex=D,t(u,N),n(l)===null&&N===n(u)&&(x?(v(P),P=-1):x=!0,fe(T,D-O))):(N.sortIndex=$,t(l,N),w||g||(w=!0,V(C))),N},e.unstable_shouldYield=U,e.unstable_wrapCallback=function(N){var L=f;return function(){var D=f;f=L;try{return N.apply(this,arguments)}finally{f=D}}}})(Lp);Mp.exports=Lp;var t0=Mp.exports;/** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var n0=y,Ye=t0;function k(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),za=Object.prototype.hasOwnProperty,r0=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Fc={},zc={};function o0(e){return za.call(zc,e)?!0:za.call(Fc,e)?!1:r0.test(e)?zc[e]=!0:(Fc[e]=!0,!1)}function i0(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function s0(e,t,n,r){if(t===null||typeof t>"u"||i0(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ie(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var Ce={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ce[e]=new Ie(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ce[t]=new Ie(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ce[e]=new Ie(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ce[e]=new Ie(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ce[e]=new Ie(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ce[e]=new Ie(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ce[e]=new Ie(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ce[e]=new Ie(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ce[e]=new Ie(e,5,!1,e.toLowerCase(),null,!1,!1)});var fu=/[\-:]([a-z])/g;function pu(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(fu,pu);Ce[t]=new Ie(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(fu,pu);Ce[t]=new Ie(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(fu,pu);Ce[t]=new Ie(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ce[e]=new Ie(e,1,!1,e.toLowerCase(),null,!1,!1)});Ce.xlinkHref=new Ie("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ce[e]=new Ie(e,1,!1,e.toLowerCase(),null,!0,!0)});function hu(e,t,n,r){var o=Ce.hasOwnProperty(t)?Ce[t]:null;(o!==null?o.type!==0:r||!(2a||o[s]!==i[a]){var l=` `+o[s].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{qs=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Qr(e):""}function a0(e){switch(e.tag){case 5:return Qr(e.type);case 16:return Qr("Lazy");case 13:return Qr("Suspense");case 19:return Qr("SuspenseList");case 0:case 2:case 15:return e=Zs(e.type,!1),e;case 11:return e=Zs(e.type.render,!1),e;case 1:return e=Zs(e.type,!0),e;default:return""}}function Wa(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Xn:return"Fragment";case Qn:return"Portal";case Ba:return"Profiler";case mu:return"StrictMode";case Ua:return"Suspense";case $a:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _p:return(e.displayName||"Context")+".Consumer";case Ip:return(e._context.displayName||"Context")+".Provider";case gu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case vu:return t=e.displayName||null,t!==null?t:Wa(e.type)||"Memo";case Bt:t=e._payload,e=e._init;try{return Wa(e(t))}catch{}}return null}function l0(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Wa(t);case 8:return t===mu?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function an(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Vp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function u0(e){var t=Vp(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ei(e){e._valueTracker||(e._valueTracker=u0(e))}function Fp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Vp(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Di(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Ha(e,t){var n=t.checked;return le({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Uc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=an(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function zp(e,t){t=t.checked,t!=null&&hu(e,"checked",t,!1)}function Ga(e,t){zp(e,t);var n=an(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ka(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ka(e,t.type,an(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function $c(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Ka(e,t,n){(t!=="number"||Di(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Xr=Array.isArray;function dr(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=ti.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function go(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var to={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},c0=["Webkit","ms","Moz","O"];Object.keys(to).forEach(function(e){c0.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),to[t]=to[e]})});function Wp(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||to.hasOwnProperty(e)&&to[e]?(""+t).trim():t+"px"}function Hp(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Wp(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var d0=le({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Xa(e,t){if(t){if(d0[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(k(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(k(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(k(61))}if(t.style!=null&&typeof t.style!="object")throw Error(k(62))}}function qa(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Za=null;function yu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ja=null,fr=null,pr=null;function Gc(e){if(e=Bo(e)){if(typeof Ja!="function")throw Error(k(280));var t=e.stateNode;t&&(t=Es(t),Ja(e.stateNode,e.type,t))}}function Gp(e){fr?pr?pr.push(e):pr=[e]:fr=e}function Kp(){if(fr){var e=fr,t=pr;if(pr=fr=null,Gc(e),t)for(e=0;e>>=0,e===0?32:31-(T0(e)/C0|0)|0}var ni=64,ri=4194304;function qr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Bi(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=qr(a):(i&=s,i!==0&&(r=qr(i)))}else s=n&~o,s!==0?r=qr(s):i!==0&&(r=qr(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Fo(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-pt(t),e[t]=n}function k0(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=ro),td=String.fromCharCode(32),nd=!1;function ph(e,t){switch(e){case"keyup":return tx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function hh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var qn=!1;function rx(e,t){switch(e){case"compositionend":return hh(t);case"keypress":return t.which!==32?null:(nd=!0,td);case"textInput":return e=t.data,e===td&&nd?null:e;default:return null}}function ox(e,t){if(qn)return e==="compositionend"||!bu&&ph(e,t)?(e=dh(),Pi=Cu=Gt=null,qn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=sd(n)}}function yh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?yh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function xh(){for(var e=window,t=Di();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Di(e.document)}return t}function ku(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function px(e){var t=xh(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&yh(n.ownerDocument.documentElement,n)){if(r!==null&&ku(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=ad(n,i);var s=ad(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Zn=null,il=null,io=null,sl=!1;function ld(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;sl||Zn==null||Zn!==Di(r)||(r=Zn,"selectionStart"in r&&ku(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),io&&To(io,r)||(io=r,r=Wi(il,"onSelect"),0tr||(e.current=fl[tr],fl[tr]=null,tr--)}function Q(e,t){tr++,fl[tr]=e.current,e.current=t}var ln={},Ne=hn(ln),Fe=hn(!1),On=ln;function wr(e,t){var n=e.type.contextTypes;if(!n)return ln;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function ze(e){return e=e.childContextTypes,e!=null}function Gi(){te(Fe),te(Ne)}function md(e,t,n){if(Ne.current!==ln)throw Error(k(168));Q(Ne,t),Q(Fe,n)}function Nh(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(k(108,l0(e)||"Unknown",o));return le({},n,r)}function Ki(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ln,On=Ne.current,Q(Ne,e),Q(Fe,Fe.current),!0}function gd(e,t,n){var r=e.stateNode;if(!r)throw Error(k(169));n?(e=Nh(e,t,On),r.__reactInternalMemoizedMergedChildContext=e,te(Fe),te(Ne),Q(Ne,e)):te(Fe),Q(Fe,n)}var Pt=null,Ps=!1,fa=!1;function Rh(e){Pt===null?Pt=[e]:Pt.push(e)}function Px(e){Ps=!0,Rh(e)}function mn(){if(!fa&&Pt!==null){fa=!0;var e=0,t=H;try{var n=Pt;for(H=1;e>=s,o-=s,bt=1<<32-pt(t)+o|n<P?(R=E,E=null):R=E.sibling;var j=f(v,E,m[P],T);if(j===null){E===null&&(E=R);break}e&&E&&j.alternate===null&&t(v,E),p=i(j,p,P),b===null?C=j:b.sibling=j,b=j,E=R}if(P===m.length)return n(v,E),oe&&wn(v,P),C;if(E===null){for(;PP?(R=E,E=null):R=E.sibling;var U=f(v,E,j.value,T);if(U===null){E===null&&(E=R);break}e&&E&&U.alternate===null&&t(v,E),p=i(U,p,P),b===null?C=U:b.sibling=U,b=U,E=R}if(j.done)return n(v,E),oe&&wn(v,P),C;if(E===null){for(;!j.done;P++,j=m.next())j=d(v,j.value,T),j!==null&&(p=i(j,p,P),b===null?C=j:b.sibling=j,b=j);return oe&&wn(v,P),C}for(E=r(v,E);!j.done;P++,j=m.next())j=g(E,v,P,j.value,T),j!==null&&(e&&j.alternate!==null&&E.delete(j.key===null?P:j.key),p=i(j,p,P),b===null?C=j:b.sibling=j,b=j);return e&&E.forEach(function(I){return t(v,I)}),oe&&wn(v,P),C}function S(v,p,m,T){if(typeof m=="object"&&m!==null&&m.type===Xn&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case Jo:e:{for(var C=m.key,b=p;b!==null;){if(b.key===C){if(C=m.type,C===Xn){if(b.tag===7){n(v,b.sibling),p=o(b,m.props.children),p.return=v,v=p;break e}}else if(b.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Bt&&xd(C)===b.type){n(v,b.sibling),p=o(b,m.props),p.ref=zr(v,b,m),p.return=v,v=p;break e}n(v,b);break}else t(v,b);b=b.sibling}m.type===Xn?(p=jn(m.props.children,v.mode,T,m.key),p.return=v,v=p):(T=Li(m.type,m.key,m.props,null,v.mode,T),T.ref=zr(v,p,m),T.return=v,v=T)}return s(v);case Qn:e:{for(b=m.key;p!==null;){if(p.key===b)if(p.tag===4&&p.stateNode.containerInfo===m.containerInfo&&p.stateNode.implementation===m.implementation){n(v,p.sibling),p=o(p,m.children||[]),p.return=v,v=p;break e}else{n(v,p);break}else t(v,p);p=p.sibling}p=wa(m,v.mode,T),p.return=v,v=p}return s(v);case Bt:return b=m._init,S(v,p,b(m._payload),T)}if(Xr(m))return w(v,p,m,T);if(Ir(m))return x(v,p,m,T);ci(v,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,p!==null&&p.tag===6?(n(v,p.sibling),p=o(p,m),p.return=v,v=p):(n(v,p),p=xa(m,v.mode,T),p.return=v,v=p),s(v)):n(v,p)}return S}var Tr=Lh(!0),Oh=Lh(!1),Xi=hn(null),qi=null,or=null,ju=null;function Mu(){ju=or=qi=null}function Lu(e){var t=Xi.current;te(Xi),e._currentValue=t}function ml(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function mr(e,t){qi=e,ju=or=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ve=!0),e.firstContext=null)}function it(e){var t=e._currentValue;if(ju!==e)if(e={context:e,memoizedValue:t,next:null},or===null){if(qi===null)throw Error(k(308));or=e,qi.dependencies={lanes:0,firstContext:e}}else or=or.next=e;return t}var bn=null;function Ou(e){bn===null?bn=[e]:bn.push(e)}function Ih(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Ou(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ot(e,r)}function Ot(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Ut=!1;function Iu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function _h(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Rt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Jt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,W&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ot(e,n)}return o=r.interleaved,o===null?(t.next=t,Ou(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ot(e,n)}function ki(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,wu(e,n)}}function wd(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Zi(e,t,n,r){var o=e.updateQueue;Ut=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?i=u:s.next=u,s=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==s&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(i!==null){var d=o.baseState;s=0,c=u=l=null,a=i;do{var f=a.lane,g=a.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:g,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var w=e,x=a;switch(f=t,g=n,x.tag){case 1:if(w=x.payload,typeof w=="function"){d=w.call(g,d,f);break e}d=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=x.payload,f=typeof w=="function"?w.call(g,d,f):w,f==null)break e;d=le({},d,f);break e;case 2:Ut=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[a]:f.push(a))}else g={eventTime:g,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=g,l=d):c=c.next=g,s|=f;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;f=a,a=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(1);if(c===null&&(l=d),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Dn|=s,e.lanes=s,e.memoizedState=d}}function Sd(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=ha.transition;ha.transition={};try{e(!1),t()}finally{H=n,ha.transition=r}}function Jh(){return st().memoizedState}function Rx(e,t,n){var r=tn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},em(e))tm(t,n);else if(n=Ih(e,t,n,r),n!==null){var o=Le();ht(n,e,r,o),nm(n,t,r)}}function Ax(e,t,n){var r=tn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(em(e))tm(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,mt(a,s)){var l=t.interleaved;l===null?(o.next=o,Ou(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=Ih(e,t,o,r),n!==null&&(o=Le(),ht(n,e,r,o),nm(n,t,r))}}function em(e){var t=e.alternate;return e===ae||t!==null&&t===ae}function tm(e,t){so=es=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function nm(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,wu(e,n)}}var ts={readContext:it,useCallback:Ee,useContext:Ee,useEffect:Ee,useImperativeHandle:Ee,useInsertionEffect:Ee,useLayoutEffect:Ee,useMemo:Ee,useReducer:Ee,useRef:Ee,useState:Ee,useDebugValue:Ee,useDeferredValue:Ee,useTransition:Ee,useMutableSource:Ee,useSyncExternalStore:Ee,useId:Ee,unstable_isNewReconciler:!1},jx={readContext:it,useCallback:function(e,t){return vt().memoizedState=[e,t===void 0?null:t],e},useContext:it,useEffect:Cd,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ri(4194308,4,Yh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ri(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ri(4,2,e,t)},useMemo:function(e,t){var n=vt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=vt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Rx.bind(null,ae,e),[r.memoizedState,e]},useRef:function(e){var t=vt();return e={current:e},t.memoizedState=e},useState:Td,useDebugValue:$u,useDeferredValue:function(e){return vt().memoizedState=e},useTransition:function(){var e=Td(!1),t=e[0];return e=Nx.bind(null,e[1]),vt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ae,o=vt();if(oe){if(n===void 0)throw Error(k(407));n=n()}else{if(n=t(),we===null)throw Error(k(349));_n&30||zh(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Cd(Uh.bind(null,r,i,e),[e]),r.flags|=2048,Ao(9,Bh.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=vt(),t=we.identifierPrefix;if(oe){var n=kt,r=bt;n=(r&~(1<<32-pt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=No++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[yt]=t,e[Po]=r,fm(e,t,!1,!1),t.stateNode=e;e:{switch(s=qa(n,r),n){case"dialog":J("cancel",e),J("close",e),o=r;break;case"iframe":case"object":case"embed":J("load",e),o=r;break;case"video":case"audio":for(o=0;oPr&&(t.flags|=128,r=!0,Br(i,!1),t.lanes=4194304)}else{if(!r)if(e=Ji(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Br(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!oe)return Pe(t),null}else 2*pe()-i.renderingStartTime>Pr&&n!==1073741824&&(t.flags|=128,r=!0,Br(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=pe(),t.sibling=null,n=ie.current,Q(ie,r?n&1|2:n&1),t):(Pe(t),null);case 22:case 23:return Qu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?He&1073741824&&(Pe(t),t.subtreeFlags&6&&(t.flags|=8192)):Pe(t),null;case 24:return null;case 25:return null}throw Error(k(156,t.tag))}function Fx(e,t){switch(Ru(t),t.tag){case 1:return ze(t.type)&&Gi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Cr(),te(Fe),te(Ne),Vu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Du(t),null;case 13:if(te(ie),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(k(340));Sr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return te(ie),null;case 4:return Cr(),null;case 10:return Lu(t.type._context),null;case 22:case 23:return Qu(),null;case 24:return null;default:return null}}var fi=!1,ke=!1,zx=typeof WeakSet=="function"?WeakSet:Set,A=null;function ir(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ue(e,t,r)}else n.current=null}function El(e,t,n){try{n()}catch(r){ue(e,t,r)}}var Od=!1;function Bx(e,t){if(al=Ui,e=xh(),ku(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var g;d!==n||o!==0&&d.nodeType!==3||(a=s+o),d!==i||r!==0&&d.nodeType!==3||(l=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(g=d.firstChild)!==null;)f=d,d=g;for(;;){if(d===e)break t;if(f===n&&++u===o&&(a=s),f===i&&++c===r&&(l=s),(g=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=g}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(ll={focusedElem:e,selectionRange:n},Ui=!1,A=t;A!==null;)if(t=A,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,A=e;else for(;A!==null;){t=A;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var x=w.memoizedProps,S=w.memoizedState,v=t.stateNode,p=v.getSnapshotBeforeUpdate(t.elementType===t.type?x:ut(t.type,x),S);v.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(k(163))}}catch(T){ue(t,t.return,T)}if(e=t.sibling,e!==null){e.return=t.return,A=e;break}A=t.return}return w=Od,Od=!1,w}function ao(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&El(t,n,i)}o=o.next}while(o!==r)}}function Ns(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Pl(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function mm(e){var t=e.alternate;t!==null&&(e.alternate=null,mm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[yt],delete t[Po],delete t[dl],delete t[Cx],delete t[Ex])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function gm(e){return e.tag===5||e.tag===3||e.tag===4}function Id(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||gm(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function bl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Hi));else if(r!==4&&(e=e.child,e!==null))for(bl(e,t,n),e=e.sibling;e!==null;)bl(e,t,n),e=e.sibling}function kl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(kl(e,t,n),e=e.sibling;e!==null;)kl(e,t,n),e=e.sibling}var Se=null,ct=!1;function Vt(e,t,n){for(n=n.child;n!==null;)vm(e,t,n),n=n.sibling}function vm(e,t,n){if(xt&&typeof xt.onCommitFiberUnmount=="function")try{xt.onCommitFiberUnmount(ws,n)}catch{}switch(n.tag){case 5:ke||ir(n,t);case 6:var r=Se,o=ct;Se=null,Vt(e,t,n),Se=r,ct=o,Se!==null&&(ct?(e=Se,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Se.removeChild(n.stateNode));break;case 18:Se!==null&&(ct?(e=Se,n=n.stateNode,e.nodeType===8?da(e.parentNode,n):e.nodeType===1&&da(e,n),wo(e)):da(Se,n.stateNode));break;case 4:r=Se,o=ct,Se=n.stateNode.containerInfo,ct=!0,Vt(e,t,n),Se=r,ct=o;break;case 0:case 11:case 14:case 15:if(!ke&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&El(n,t,s),o=o.next}while(o!==r)}Vt(e,t,n);break;case 1:if(!ke&&(ir(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){ue(n,t,a)}Vt(e,t,n);break;case 21:Vt(e,t,n);break;case 22:n.mode&1?(ke=(r=ke)||n.memoizedState!==null,Vt(e,t,n),ke=r):Vt(e,t,n);break;default:Vt(e,t,n)}}function _d(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new zx),t.forEach(function(r){var o=Xx.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function at(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=pe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*$x(r/1960))-r,10e?16:e,Kt===null)var r=!1;else{if(e=Kt,Kt=null,os=0,W&6)throw Error(k(331));var o=W;for(W|=4,A=e.current;A!==null;){var i=A,s=i.child;if(A.flags&16){var a=i.deletions;if(a!==null){for(var l=0;lpe()-Ku?An(e,0):Gu|=n),Be(e,t)}function Pm(e,t){t===0&&(e.mode&1?(t=ri,ri<<=1,!(ri&130023424)&&(ri=4194304)):t=1);var n=Le();e=Ot(e,t),e!==null&&(Fo(e,t,n),Be(e,n))}function Qx(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Pm(e,n)}function Xx(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(k(314))}r!==null&&r.delete(t),Pm(e,n)}var bm;bm=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Fe.current)Ve=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ve=!1,Dx(e,t,n);Ve=!!(e.flags&131072)}else Ve=!1,oe&&t.flags&1048576&&Ah(t,Qi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ai(e,t),e=t.pendingProps;var o=wr(t,Ne.current);mr(t,n),o=zu(null,t,r,e,o,n);var i=Bu();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ze(r)?(i=!0,Ki(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Iu(t),o.updater=ks,t.stateNode=o,o._reactInternals=t,vl(t,r,e,n),t=wl(null,t,r,!0,i,n)):(t.tag=0,oe&&i&&Nu(t),Me(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ai(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Zx(r),e=ut(r,e),o){case 0:t=xl(null,t,r,e,n);break e;case 1:t=jd(null,t,r,e,n);break e;case 11:t=Rd(null,t,r,e,n);break e;case 14:t=Ad(null,t,r,ut(r.type,e),n);break e}throw Error(k(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ut(r,o),xl(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ut(r,o),jd(e,t,r,o,n);case 3:e:{if(um(t),e===null)throw Error(k(387));r=t.pendingProps,i=t.memoizedState,o=i.element,_h(e,t),Zi(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Er(Error(k(423)),t),t=Md(e,t,r,n,o);break e}else if(r!==o){o=Er(Error(k(424)),t),t=Md(e,t,r,n,o);break e}else for(Ge=Zt(t.stateNode.containerInfo.firstChild),Ke=t,oe=!0,dt=null,n=Oh(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Sr(),r===o){t=It(e,t,n);break e}Me(e,t,r,n)}t=t.child}return t;case 5:return Dh(t),e===null&&hl(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,ul(r,o)?s=null:i!==null&&ul(r,i)&&(t.flags|=32),lm(e,t),Me(e,t,s,n),t.child;case 6:return e===null&&hl(t),null;case 13:return cm(e,t,n);case 4:return _u(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Tr(t,null,r,n):Me(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ut(r,o),Rd(e,t,r,o,n);case 7:return Me(e,t,t.pendingProps,n),t.child;case 8:return Me(e,t,t.pendingProps.children,n),t.child;case 12:return Me(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,Q(Xi,r._currentValue),r._currentValue=s,i!==null)if(mt(i.value,s)){if(i.children===o.children&&!Fe.current){t=It(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Rt(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),ml(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(k(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),ml(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}Me(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,mr(t,n),o=it(o),r=r(o),t.flags|=1,Me(e,t,r,n),t.child;case 14:return r=t.type,o=ut(r,t.pendingProps),o=ut(r.type,o),Ad(e,t,r,o,n);case 15:return sm(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ut(r,o),Ai(e,t),t.tag=1,ze(r)?(e=!0,Ki(t)):e=!1,mr(t,n),rm(t,r,o),vl(t,r,o,n),wl(null,t,r,!0,e,n);case 19:return dm(e,t,n);case 22:return am(e,t,n)}throw Error(k(156,t.tag))};function km(e,t){return eh(e,t)}function qx(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function rt(e,t,n,r){return new qx(e,t,n,r)}function qu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Zx(e){if(typeof e=="function")return qu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===gu)return 11;if(e===vu)return 14}return 2}function nn(e,t){var n=e.alternate;return n===null?(n=rt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Li(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")qu(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Xn:return jn(n.children,o,i,t);case mu:s=8,o|=8;break;case Ba:return e=rt(12,n,t,o|2),e.elementType=Ba,e.lanes=i,e;case Ua:return e=rt(13,n,t,o),e.elementType=Ua,e.lanes=i,e;case $a:return e=rt(19,n,t,o),e.elementType=$a,e.lanes=i,e;case Dp:return As(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ip:s=10;break e;case _p:s=9;break e;case gu:s=11;break e;case vu:s=14;break e;case Bt:s=16,r=null;break e}throw Error(k(130,e==null?e:typeof e,""))}return t=rt(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function jn(e,t,n,r){return e=rt(7,e,r,t),e.lanes=n,e}function As(e,t,n,r){return e=rt(22,e,r,t),e.elementType=Dp,e.lanes=n,e.stateNode={isHidden:!1},e}function xa(e,t,n){return e=rt(6,e,null,t),e.lanes=n,e}function wa(e,t,n){return t=rt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Jx(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ea(0),this.expirationTimes=ea(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ea(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Zu(e,t,n,r,o,i,s,a,l){return e=new Jx(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=rt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Iu(i),e}function e1(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(jm)}catch(e){console.error(e)}}jm(),jp.exports=Xe;var Is=jp.exports;const i1=Ar(Is);var Wd=Is;Fa.createRoot=Wd.createRoot,Fa.hydrateRoot=Wd.hydrateRoot;/** * @remix-run/router v1.23.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function Mo(){return Mo=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Mm(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function a1(){return Math.random().toString(36).substr(2,8)}function Gd(e,t){return{usr:e.state,key:e.key,idx:t}}function Ml(e,t,n,r){return n===void 0&&(n=null),Mo({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Or(t):t,{state:n,key:t&&t.key||r||a1()})}function as(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Or(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function l1(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,s=o.history,a=Yt.Pop,l=null,u=c();u==null&&(u=0,s.replaceState(Mo({},s.state,{idx:u}),""));function c(){return(s.state||{idx:null}).idx}function d(){a=Yt.Pop;let S=c(),v=S==null?null:S-u;u=S,l&&l({action:a,location:x.location,delta:v})}function f(S,v){a=Yt.Push;let p=Ml(x.location,S,v);n&&n(p,S),u=c()+1;let m=Gd(p,u),T=x.createHref(p);try{s.pushState(m,"",T)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;o.location.assign(T)}i&&l&&l({action:a,location:x.location,delta:1})}function g(S,v){a=Yt.Replace;let p=Ml(x.location,S,v);n&&n(p,S),u=c();let m=Gd(p,u),T=x.createHref(p);s.replaceState(m,"",T),i&&l&&l({action:a,location:x.location,delta:0})}function w(S){let v=o.location.origin!=="null"?o.location.origin:o.location.href,p=typeof S=="string"?S:as(S);return p=p.replace(/ $/,"%20"),ge(v,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,v)}let x={get action(){return a},get location(){return e(o,s)},listen(S){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(Hd,d),l=S,()=>{o.removeEventListener(Hd,d),l=null}},createHref(S){return t(o,S)},createURL:w,encodeLocation(S){let v=w(S);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:f,replace:g,go(S){return s.go(S)}};return x}var Kd;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Kd||(Kd={}));function u1(e,t,n){return n===void 0&&(n="/"),c1(e,t,n,!1)}function c1(e,t,n,r){let o=typeof t=="string"?Or(t):t,i=nc(o.pathname||"/",n);if(i==null)return null;let s=Lm(e);d1(s);let a=null;for(let l=0;a==null&&l{let l={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};l.relativePath.startsWith("/")&&(ge(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=rn([r,l.relativePath]),c=n.concat(l);i.children&&i.children.length>0&&(ge(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Lm(i.children,t,c,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:y1(u,i.index),routesMeta:c})};return e.forEach((i,s)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))o(i,s);else for(let l of Om(i.path))o(i,s,l)}),t}function Om(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let s=Om(r.join("/")),a=[];return a.push(...s.map(l=>l===""?i:[i,l].join("/"))),o&&a.push(...s),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function d1(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:x1(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const f1=/^:[\w-]+$/,p1=3,h1=2,m1=1,g1=10,v1=-2,Yd=e=>e==="*";function y1(e,t){let n=e.split("/"),r=n.length;return n.some(Yd)&&(r+=v1),t&&(r+=h1),n.filter(o=>!Yd(o)).reduce((o,i)=>o+(f1.test(i)?p1:i===""?m1:g1),r)}function x1(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function w1(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,o={},i="/",s=[];for(let a=0;a{let{paramName:f,isOptional:g}=c;if(f==="*"){let x=a[d]||"";s=i.slice(0,i.length-x.length).replace(/(.)\/+$/,"$1")}const w=a[d];return g&&!w?u[f]=void 0:u[f]=(w||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:s,pattern:e}}function S1(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Mm(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function T1(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Mm(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function nc(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function C1(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Or(e):e;return{pathname:n?n.startsWith("/")?n:E1(n,t):t,search:k1(r),hash:N1(o)}}function E1(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Sa(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function P1(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Im(e,t){let n=P1(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function _m(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Or(e):(o=Mo({},e),ge(!o.pathname||!o.pathname.includes("?"),Sa("?","pathname","search",o)),ge(!o.pathname||!o.pathname.includes("#"),Sa("#","pathname","hash",o)),ge(!o.search||!o.search.includes("#"),Sa("#","search","hash",o)));let i=e===""||o.pathname==="",s=i?"/":o.pathname,a;if(s==null)a=n;else{let d=t.length-1;if(!r&&s.startsWith("..")){let f=s.split("/");for(;f[0]==="..";)f.shift(),d-=1;o.pathname=f.join("/")}a=d>=0?t[d]:"/"}let l=C1(o,a),u=s&&s!=="/"&&s.endsWith("/"),c=(i||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const rn=e=>e.join("/").replace(/\/\/+/g,"/"),b1=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),k1=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,N1=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function R1(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Dm=["post","put","patch","delete"];new Set(Dm);const A1=["get",...Dm];new Set(A1);/** * React Router v6.30.1 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function Lo(){return Lo=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),y.useCallback(function(u,c){if(c===void 0&&(c={}),!a.current)return;if(typeof u=="number"){r.go(u);return}let d=_m(u,JSON.parse(s),i,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:rn([t,d.pathname])),(c.replace?r.replace:r.push)(d,c.state,c)},[t,r,s,i,e])}function zm(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=y.useContext(Bn),{matches:o}=y.useContext(Un),{pathname:i}=Wo(),s=JSON.stringify(Im(o,r.v7_relativeSplatPath));return y.useMemo(()=>_m(e,JSON.parse(s),i,n==="path"),[e,s,i,n])}function I1(e,t){return _1(e,t)}function _1(e,t,n,r){$o()||ge(!1);let{navigator:o}=y.useContext(Bn),{matches:i}=y.useContext(Un),s=i[i.length-1],a=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let u=Wo(),c;if(t){var d;let S=typeof t=="string"?Or(t):t;l==="/"||(d=S.pathname)!=null&&d.startsWith(l)||ge(!1),c=S}else c=u;let f=c.pathname||"/",g=f;if(l!=="/"){let S=l.replace(/^\//,"").split("/");g="/"+f.replace(/^\//,"").split("/").slice(S.length).join("/")}let w=u1(e,{pathname:g}),x=B1(w&&w.map(S=>Object.assign({},S,{params:Object.assign({},a,S.params),pathname:rn([l,o.encodeLocation?o.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?l:rn([l,o.encodeLocation?o.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),i,n,r);return t&&x?y.createElement(_s.Provider,{value:{location:Lo({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Yt.Pop}},x):x}function D1(){let e=H1(),t=R1(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return y.createElement(y.Fragment,null,y.createElement("h2",null,"Unexpected Application Error!"),y.createElement("h3",{style:{fontStyle:"italic"}},t),n?y.createElement("pre",{style:o},n):null,i)}const V1=y.createElement(D1,null);class F1 extends y.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?y.createElement(Un.Provider,{value:this.props.routeContext},y.createElement(Vm.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function z1(e){let{routeContext:t,match:n,children:r}=e,o=y.useContext(rc);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),y.createElement(Un.Provider,{value:t},r)}function B1(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,a=(o=n)==null?void 0:o.errors;if(a!=null){let c=s.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id])!==void 0);c>=0||ge(!1),s=s.slice(0,Math.min(s.length,c+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c=0?s=s.slice(0,u+1):s=[s[0]];break}}}return s.reduceRight((c,d,f)=>{let g,w=!1,x=null,S=null;n&&(g=a&&d.route.id?a[d.route.id]:void 0,x=d.route.errorElement||V1,l&&(u<0&&f===0?(K1("route-fallback",!1),w=!0,S=null):u===f&&(w=!0,S=d.route.hydrateFallbackElement||null)));let v=t.concat(s.slice(0,f+1)),p=()=>{let m;return g?m=x:w?m=S:d.route.Component?m=y.createElement(d.route.Component,null):d.route.element?m=d.route.element:m=c,y.createElement(z1,{match:d,routeContext:{outlet:c,matches:v,isDataRoute:n!=null},children:m})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?y.createElement(F1,{location:n.location,revalidation:n.revalidation,component:x,error:g,children:p(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):p()},null)}var Bm=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Bm||{}),ls=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(ls||{});function U1(e){let t=y.useContext(rc);return t||ge(!1),t}function $1(e){let t=y.useContext(j1);return t||ge(!1),t}function W1(e){let t=y.useContext(Un);return t||ge(!1),t}function Um(e){let t=W1(),n=t.matches[t.matches.length-1];return n.route.id||ge(!1),n.route.id}function H1(){var e;let t=y.useContext(Vm),n=$1(ls.UseRouteError),r=Um(ls.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function G1(){let{router:e}=U1(Bm.UseNavigateStable),t=Um(ls.UseNavigateStable),n=y.useRef(!1);return Fm(()=>{n.current=!0}),y.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Lo({fromRouteId:t},i)))},[e,t])}const Xd={};function K1(e,t,n){!t&&!Xd[e]&&(Xd[e]=!0)}function Y1(e,t){e==null||e.v7_startTransition,(e==null?void 0:e.v7_relativeSplatPath)===void 0&&(!t||t.v7_relativeSplatPath),t&&(t.v7_fetcherPersist,t.v7_normalizeFormMethod,t.v7_partialHydration,t.v7_skipActionErrorRevalidation)}function Jr(e){ge(!1)}function Q1(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Yt.Pop,navigator:i,static:s=!1,future:a}=e;$o()&&ge(!1);let l=t.replace(/^\/*/,"/"),u=y.useMemo(()=>({basename:l,navigator:i,static:s,future:Lo({v7_relativeSplatPath:!1},a)}),[l,a,i,s]);typeof r=="string"&&(r=Or(r));let{pathname:c="/",search:d="",hash:f="",state:g=null,key:w="default"}=r,x=y.useMemo(()=>{let S=nc(c,l);return S==null?null:{location:{pathname:S,search:d,hash:f,state:g,key:w},navigationType:o}},[l,c,d,f,g,w,o]);return x==null?null:y.createElement(Bn.Provider,{value:u},y.createElement(_s.Provider,{children:n,value:x}))}function X1(e){let{children:t,location:n}=e;return I1(Ll(t),n)}new Promise(()=>{});function Ll(e,t){t===void 0&&(t=[]);let n=[];return y.Children.forEach(e,(r,o)=>{if(!y.isValidElement(r))return;let i=[...t,o];if(r.type===y.Fragment){n.push.apply(n,Ll(r.props.children,i));return}r.type!==Jr&&ge(!1),!r.props.index||!r.props.children||ge(!1);let s={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=Ll(r.props.children,i)),n.push(s)}),n}/** * React Router DOM v6.30.1 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function Ol(){return Ol=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function Z1(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function J1(e,t){return e.button===0&&(!t||t==="_self")&&!Z1(e)}const ew=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],tw="6";try{window.__reactRouterVersion=tw}catch{}const nw="startTransition",qd=du[nw];function rw(e){let{basename:t,children:n,future:r,window:o}=e,i=y.useRef();i.current==null&&(i.current=s1({window:o,v5Compat:!0}));let s=i.current,[a,l]=y.useState({action:s.action,location:s.location}),{v7_startTransition:u}=r||{},c=y.useCallback(d=>{u&&qd?qd(()=>l(d)):l(d)},[l,u]);return y.useLayoutEffect(()=>s.listen(c),[s,c]),y.useEffect(()=>Y1(r),[r]),y.createElement(Q1,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:s,future:r})}const ow=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",iw=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,vr=y.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:s,state:a,target:l,to:u,preventScrollReset:c,viewTransition:d}=t,f=q1(t,ew),{basename:g}=y.useContext(Bn),w,x=!1;if(typeof u=="string"&&iw.test(u)&&(w=u,ow))try{let m=new URL(window.location.href),T=u.startsWith("//")?new URL(m.protocol+u):new URL(u),C=nc(T.pathname,g);T.origin===m.origin&&C!=null?u=C+T.search+T.hash:x=!0}catch{}let S=M1(u,{relative:o}),v=sw(u,{replace:s,state:a,target:l,preventScrollReset:c,relative:o,viewTransition:d});function p(m){r&&r(m),m.defaultPrevented||v(m)}return y.createElement("a",Ol({},f,{href:w||S,onClick:x||i?r:p,ref:n,target:l}))});var Zd;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Zd||(Zd={}));var Jd;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Jd||(Jd={}));function sw(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:s,viewTransition:a}=t===void 0?{}:t,l=L1(),u=Wo(),c=zm(e,{relative:s});return y.useCallback(d=>{if(J1(d,n)){d.preventDefault();let f=r!==void 0?r:as(u)===as(c);l(e,{replace:f,state:o,preventScrollReset:i,relative:s,viewTransition:a})}},[u,l,c,r,o,n,e,i,s,a])}function $m(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;te&&(t=0,r=n,n=new Map)}return{get:function(s){var a=n.get(s);if(a!==void 0)return a;if((a=r.get(s))!==void 0)return o(s,a),a},set:function(s,a){n.has(s)?n.set(s,a):o(s,a)}}}var Km="!";function hw(e){var t=e.separator||":",n=t.length===1,r=t[0],o=t.length;return function(s){for(var a=[],l=0,u=0,c,d=0;du?c-u:void 0;return{modifiers:a,hasImportantModifier:w,baseClassName:x,maybePostfixModifierPosition:S}}}function mw(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach(function(r){var o=r[0]==="[";o?(t.push.apply(t,n.sort().concat([r])),n=[]):n.push(r)}),t.push.apply(t,n.sort()),t}function gw(e){return{cache:pw(e.cacheSize),splitModifiers:hw(e),...lw(e)}}var vw=/\s+/;function yw(e,t){var n=t.splitModifiers,r=t.getClassGroupId,o=t.getConflictingClassGroupIds,i=new Set;return e.trim().split(vw).map(function(s){var a=n(s),l=a.modifiers,u=a.hasImportantModifier,c=a.baseClassName,d=a.maybePostfixModifierPosition,f=r(d?c.substring(0,d):c),g=!!d;if(!f){if(!d)return{isTailwindClass:!1,originalClassName:s};if(f=r(c),!f)return{isTailwindClass:!1,originalClassName:s};g=!1}var w=mw(l).join(":"),x=u?w+Km:w;return{isTailwindClass:!0,modifierId:x,classGroupId:f,originalClassName:s,hasPostfixModifier:g}}).reverse().filter(function(s){if(!s.isTailwindClass)return!0;var a=s.modifierId,l=s.classGroupId,u=s.hasPostfixModifier,c=a+l;return i.has(c)?!1:(i.add(c),o(l,u).forEach(function(d){return i.add(a+d)}),!0)}).reverse().map(function(s){return s.originalClassName}).join(" ")}function xw(){for(var e=arguments.length,t=new Array(e),n=0;n{let n=!1;const r=e.map(o=>{const i=rf(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o{var v;const{scope:f,children:g,...w}=d,x=((v=f==null?void 0:f[e])==null?void 0:v[l])||a,S=y.useMemo(()=>w,Object.values(w));return h.jsx(x.Provider,{value:S,children:g})};u.displayName=i+"Provider";function c(d,f){var x;const g=((x=f==null?void 0:f[e])==null?void 0:x[l])||a,w=y.useContext(g);if(w)return w;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[u,c]}const o=()=>{const i=n.map(s=>y.createContext(s));return function(a){const l=(a==null?void 0:a[e])||i;return y.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,Iw(o,...t)]}function Iw(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((a,{useScope:l,scopeName:u})=>{const d=l(i)[`__scope${u}`];return{...a,...d}},{});return y.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function us(e){const t=Dw(e),n=y.forwardRef((r,o)=>{const{children:i,...s}=r,a=y.Children.toArray(i),l=a.find(Fw);if(l){const u=l.props.children,c=a.map(d=>d===l?y.Children.count(u)>1?y.Children.only(null):y.isValidElement(u)?u.props.children:null:d);return h.jsx(t,{...s,ref:o,children:y.isValidElement(u)?y.cloneElement(u,void 0,c):null})}return h.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}var _w=us("Slot");function Dw(e){const t=y.forwardRef((n,r)=>{const{children:o,...i}=n;if(y.isValidElement(o)){const s=Bw(o),a=zw(i,o.props);return o.type!==y.Fragment&&(a.ref=r?Xm(r,s):s),y.cloneElement(o,a)}return y.Children.count(o)>1?y.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Vw=Symbol("radix.slottable");function Fw(e){return y.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Vw}function zw(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{const l=i(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Bw(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function qm(e){const t=e+"CollectionProvider",[n,r]=Ds(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=x=>{const{scope:S,children:v}=x,p=Y.useRef(null),m=Y.useRef(new Map).current;return h.jsx(o,{scope:S,itemMap:m,collectionRef:p,children:v})};s.displayName=t;const a=e+"CollectionSlot",l=us(a),u=Y.forwardRef((x,S)=>{const{scope:v,children:p}=x,m=i(a,v),T=un(S,m.collectionRef);return h.jsx(l,{ref:T,children:p})});u.displayName=a;const c=e+"CollectionItemSlot",d="data-radix-collection-item",f=us(c),g=Y.forwardRef((x,S)=>{const{scope:v,children:p,...m}=x,T=Y.useRef(null),C=un(S,T),b=i(c,v);return Y.useEffect(()=>(b.itemMap.set(T,{ref:T,...m}),()=>void b.itemMap.delete(T))),h.jsx(f,{[d]:"",ref:C,children:p})});g.displayName=c;function w(x){const S=i(e+"CollectionConsumer",x);return Y.useCallback(()=>{const p=S.collectionRef.current;if(!p)return[];const m=Array.from(p.querySelectorAll(`[${d}]`));return Array.from(S.itemMap.values()).sort((b,E)=>m.indexOf(b.ref.current)-m.indexOf(E.ref.current))},[S.collectionRef,S.itemMap])}return[{Provider:s,Slot:u,ItemSlot:g},w,r]}var Uw=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Re=Uw.reduce((e,t)=>{const n=us(`Primitive.${t}`),r=y.forwardRef((o,i)=>{const{asChild:s,...a}=o,l=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(l,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Zm(e,t){e&&Is.flushSync(()=>e.dispatchEvent(t))}function cn(e){const t=y.useRef(e);return y.useEffect(()=>{t.current=e}),y.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function $w(e,t=globalThis==null?void 0:globalThis.document){const n=cn(e);y.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Ww="DismissableLayer",Dl="dismissableLayer.update",Hw="dismissableLayer.pointerDownOutside",Gw="dismissableLayer.focusOutside",of,Jm=y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),eg=y.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...l}=e,u=y.useContext(Jm),[c,d]=y.useState(null),f=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=y.useState({}),w=un(t,E=>d(E)),x=Array.from(u.layers),[S]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=x.indexOf(S),p=c?x.indexOf(c):-1,m=u.layersWithOutsidePointerEventsDisabled.size>0,T=p>=v,C=Yw(E=>{const P=E.target,R=[...u.branches].some(j=>j.contains(P));!T||R||(o==null||o(E),s==null||s(E),E.defaultPrevented||a==null||a())},f),b=Qw(E=>{const P=E.target;[...u.branches].some(j=>j.contains(P))||(i==null||i(E),s==null||s(E),E.defaultPrevented||a==null||a())},f);return $w(E=>{p===u.layers.size-1&&(r==null||r(E),!E.defaultPrevented&&a&&(E.preventDefault(),a()))},f),y.useEffect(()=>{if(c)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(of=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),sf(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=of)}},[c,f,n,u]),y.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),sf())},[c,u]),y.useEffect(()=>{const E=()=>g({});return document.addEventListener(Dl,E),()=>document.removeEventListener(Dl,E)},[]),h.jsx(Re.div,{...l,ref:w,style:{pointerEvents:m?T?"auto":"none":void 0,...e.style},onFocusCapture:ce(e.onFocusCapture,b.onFocusCapture),onBlurCapture:ce(e.onBlurCapture,b.onBlurCapture),onPointerDownCapture:ce(e.onPointerDownCapture,C.onPointerDownCapture)})});eg.displayName=Ww;var Kw="DismissableLayerBranch",tg=y.forwardRef((e,t)=>{const n=y.useContext(Jm),r=y.useRef(null),o=un(t,r);return y.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),h.jsx(Re.div,{...e,ref:o})});tg.displayName=Kw;function Yw(e,t=globalThis==null?void 0:globalThis.document){const n=cn(e),r=y.useRef(!1),o=y.useRef(()=>{});return y.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let l=function(){ng(Hw,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Qw(e,t=globalThis==null?void 0:globalThis.document){const n=cn(e),r=y.useRef(!1);return y.useEffect(()=>{const o=i=>{i.target&&!r.current&&ng(Gw,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function sf(){const e=new CustomEvent(Dl);document.dispatchEvent(e)}function ng(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Zm(o,i):o.dispatchEvent(i)}var Xw=eg,qw=tg,br=globalThis!=null&&globalThis.document?y.useLayoutEffect:()=>{},Zw="Portal",rg=y.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,i]=y.useState(!1);br(()=>i(!0),[]);const s=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?i1.createPortal(h.jsx(Re.div,{...r,ref:t}),s):null});rg.displayName=Zw;function Jw(e,t){return y.useReducer((n,r)=>t[n][r]??n,e)}var ic=e=>{const{present:t,children:n}=e,r=eS(t),o=typeof n=="function"?n({present:r.isPresent}):y.Children.only(n),i=un(r.ref,tS(o));return typeof n=="function"||r.isPresent?y.cloneElement(o,{ref:i}):null};ic.displayName="Presence";function eS(e){const[t,n]=y.useState(),r=y.useRef(null),o=y.useRef(e),i=y.useRef("none"),s=e?"mounted":"unmounted",[a,l]=Jw(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return y.useEffect(()=>{const u=gi(r.current);i.current=a==="mounted"?u:"none"},[a]),br(()=>{const u=r.current,c=o.current;if(c!==e){const f=i.current,g=gi(u);e?l("MOUNT"):g==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(c&&f!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),br(()=>{if(t){let u;const c=t.ownerDocument.defaultView??window,d=g=>{const x=gi(r.current).includes(CSS.escape(g.animationName));if(g.target===t&&x&&(l("ANIMATION_END"),!o.current)){const S=t.style.animationFillMode;t.style.animationFillMode="forwards",u=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=S)})}},f=g=>{g.target===t&&(i.current=gi(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{c.clearTimeout(u),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:y.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function gi(e){return(e==null?void 0:e.animationName)||"none"}function tS(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var nS=du[" useInsertionEffect ".trim().toString()]||br;function sc({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,s]=rS({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:o;{const c=y.useRef(e!==void 0);y.useEffect(()=>{const d=c.current;d!==a&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),c.current=a},[a,r])}const u=y.useCallback(c=>{var d;if(a){const f=oS(c)?c(e):c;f!==e&&((d=s.current)==null||d.call(s,f))}else i(c)},[a,e,i,s]);return[l,u]}function rS({defaultProp:e,onChange:t}){const[n,r]=y.useState(e),o=y.useRef(n),i=y.useRef(t);return nS(()=>{i.current=t},[t]),y.useEffect(()=>{var s;o.current!==n&&((s=i.current)==null||s.call(i,n),o.current=n)},[n,o]),[n,r,i]}function oS(e){return typeof e=="function"}var iS=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),sS="VisuallyHidden",ac=y.forwardRef((e,t)=>h.jsx(Re.span,{...e,ref:t,style:{...iS,...e.style}}));ac.displayName=sS;var lc="ToastProvider",[uc,aS,lS]=qm("Toast"),[og,Ek]=Ds("Toast",[lS]),[uS,Vs]=og(lc),ig=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:i=50,children:s}=e,[a,l]=y.useState(null),[u,c]=y.useState(0),d=y.useRef(!1),f=y.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${lc}\`. Expected non-empty \`string\`.`),h.jsx(uc.Provider,{scope:t,children:h.jsx(uS,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:i,toastCount:u,viewport:a,onViewportChange:l,onToastAdd:y.useCallback(()=>c(g=>g+1),[]),onToastRemove:y.useCallback(()=>c(g=>g-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:f,children:s})})};ig.displayName=lc;var sg="ToastViewport",cS=["F8"],Vl="toast.viewportPause",Fl="toast.viewportResume",ag=y.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=cS,label:o="Notifications ({hotkey})",...i}=e,s=Vs(sg,n),a=aS(n),l=y.useRef(null),u=y.useRef(null),c=y.useRef(null),d=y.useRef(null),f=un(t,d,s.onViewportChange),g=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),w=s.toastCount>0;y.useEffect(()=>{const S=v=>{var m;r.length!==0&&r.every(T=>v[T]||v.code===T)&&((m=d.current)==null||m.focus())};return document.addEventListener("keydown",S),()=>document.removeEventListener("keydown",S)},[r]),y.useEffect(()=>{const S=l.current,v=d.current;if(w&&S&&v){const p=()=>{if(!s.isClosePausedRef.current){const b=new CustomEvent(Vl);v.dispatchEvent(b),s.isClosePausedRef.current=!0}},m=()=>{if(s.isClosePausedRef.current){const b=new CustomEvent(Fl);v.dispatchEvent(b),s.isClosePausedRef.current=!1}},T=b=>{!S.contains(b.relatedTarget)&&m()},C=()=>{S.contains(document.activeElement)||m()};return S.addEventListener("focusin",p),S.addEventListener("focusout",T),S.addEventListener("pointermove",p),S.addEventListener("pointerleave",C),window.addEventListener("blur",p),window.addEventListener("focus",m),()=>{S.removeEventListener("focusin",p),S.removeEventListener("focusout",T),S.removeEventListener("pointermove",p),S.removeEventListener("pointerleave",C),window.removeEventListener("blur",p),window.removeEventListener("focus",m)}}},[w,s.isClosePausedRef]);const x=y.useCallback(({tabbingDirection:S})=>{const p=a().map(m=>{const T=m.ref.current,C=[T,...CS(T)];return S==="forwards"?C:C.reverse()});return(S==="forwards"?p.reverse():p).flat()},[a]);return y.useEffect(()=>{const S=d.current;if(S){const v=p=>{var C,b,E;const m=p.altKey||p.ctrlKey||p.metaKey;if(p.key==="Tab"&&!m){const P=document.activeElement,R=p.shiftKey;if(p.target===S&&R){(C=u.current)==null||C.focus();return}const I=x({tabbingDirection:R?"backwards":"forwards"}),q=I.findIndex(M=>M===P);Ta(I.slice(q+1))?p.preventDefault():R?(b=u.current)==null||b.focus():(E=c.current)==null||E.focus()}};return S.addEventListener("keydown",v),()=>S.removeEventListener("keydown",v)}},[a,x]),h.jsxs(qw,{ref:l,role:"region","aria-label":o.replace("{hotkey}",g),tabIndex:-1,style:{pointerEvents:w?void 0:"none"},children:[w&&h.jsx(zl,{ref:u,onFocusFromOutsideViewport:()=>{const S=x({tabbingDirection:"forwards"});Ta(S)}}),h.jsx(uc.Slot,{scope:n,children:h.jsx(Re.ol,{tabIndex:-1,...i,ref:f})}),w&&h.jsx(zl,{ref:c,onFocusFromOutsideViewport:()=>{const S=x({tabbingDirection:"backwards"});Ta(S)}})]})});ag.displayName=sg;var lg="ToastFocusProxy",zl=y.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,i=Vs(lg,n);return h.jsx(ac,{tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:s=>{var u;const a=s.relatedTarget;!((u=i.viewport)!=null&&u.contains(a))&&r()}})});zl.displayName=lg;var Ho="Toast",dS="toast.swipeStart",fS="toast.swipeMove",pS="toast.swipeCancel",hS="toast.swipeEnd",ug=y.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:i,...s}=e,[a,l]=sc({prop:r,defaultProp:o??!0,onChange:i,caller:Ho});return h.jsx(ic,{present:n||a,children:h.jsx(vS,{open:a,...s,ref:t,onClose:()=>l(!1),onPause:cn(e.onPause),onResume:cn(e.onResume),onSwipeStart:ce(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ce(e.onSwipeMove,u=>{const{x:c,y:d}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${d}px`)}),onSwipeCancel:ce(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:ce(e.onSwipeEnd,u=>{const{x:c,y:d}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${d}px`),l(!1)})})})});ug.displayName=Ho;var[mS,gS]=og(Ho,{onClose(){}}),vS=y.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:i,onClose:s,onEscapeKeyDown:a,onPause:l,onResume:u,onSwipeStart:c,onSwipeMove:d,onSwipeCancel:f,onSwipeEnd:g,...w}=e,x=Vs(Ho,n),[S,v]=y.useState(null),p=un(t,M=>v(M)),m=y.useRef(null),T=y.useRef(null),C=o||x.duration,b=y.useRef(0),E=y.useRef(C),P=y.useRef(0),{onToastAdd:R,onToastRemove:j}=x,U=cn(()=>{var G;(S==null?void 0:S.contains(document.activeElement))&&((G=x.viewport)==null||G.focus()),s()}),I=y.useCallback(M=>{!M||M===1/0||(window.clearTimeout(P.current),b.current=new Date().getTime(),P.current=window.setTimeout(U,M))},[U]);y.useEffect(()=>{const M=x.viewport;if(M){const G=()=>{I(E.current),u==null||u()},V=()=>{const fe=new Date().getTime()-b.current;E.current=E.current-fe,window.clearTimeout(P.current),l==null||l()};return M.addEventListener(Vl,V),M.addEventListener(Fl,G),()=>{M.removeEventListener(Vl,V),M.removeEventListener(Fl,G)}}},[x.viewport,C,l,u,I]),y.useEffect(()=>{i&&!x.isClosePausedRef.current&&I(C)},[i,C,x.isClosePausedRef,I]),y.useEffect(()=>(R(),()=>j()),[R,j]);const q=y.useMemo(()=>S?gg(S):null,[S]);return x.viewport?h.jsxs(h.Fragment,{children:[q&&h.jsx(yS,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite",children:q}),h.jsx(mS,{scope:n,onClose:U,children:Is.createPortal(h.jsx(uc.ItemSlot,{scope:n,children:h.jsx(Xw,{asChild:!0,onEscapeKeyDown:ce(a,()=>{x.isFocusedToastEscapeKeyDownRef.current||U(),x.isFocusedToastEscapeKeyDownRef.current=!1}),children:h.jsx(Re.li,{tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":x.swipeDirection,...w,ref:p,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:ce(e.onKeyDown,M=>{M.key==="Escape"&&(a==null||a(M.nativeEvent),M.nativeEvent.defaultPrevented||(x.isFocusedToastEscapeKeyDownRef.current=!0,U()))}),onPointerDown:ce(e.onPointerDown,M=>{M.button===0&&(m.current={x:M.clientX,y:M.clientY})}),onPointerMove:ce(e.onPointerMove,M=>{if(!m.current)return;const G=M.clientX-m.current.x,V=M.clientY-m.current.y,fe=!!T.current,N=["left","right"].includes(x.swipeDirection),L=["left","up"].includes(x.swipeDirection)?Math.min:Math.max,D=N?L(0,G):0,O=N?0:L(0,V),$=M.pointerType==="touch"?10:2,K={x:D,y:O},$e={originalEvent:M,delta:K};fe?(T.current=K,vi(fS,d,$e,{discrete:!1})):af(K,x.swipeDirection,$)?(T.current=K,vi(dS,c,$e,{discrete:!1}),M.target.setPointerCapture(M.pointerId)):(Math.abs(G)>$||Math.abs(V)>$)&&(m.current=null)}),onPointerUp:ce(e.onPointerUp,M=>{const G=T.current,V=M.target;if(V.hasPointerCapture(M.pointerId)&&V.releasePointerCapture(M.pointerId),T.current=null,m.current=null,G){const fe=M.currentTarget,N={originalEvent:M,delta:G};af(G,x.swipeDirection,x.swipeThreshold)?vi(hS,g,N,{discrete:!0}):vi(pS,f,N,{discrete:!0}),fe.addEventListener("click",L=>L.preventDefault(),{once:!0})}})})})}),x.viewport)})]}):null}),yS=e=>{const{__scopeToast:t,children:n,...r}=e,o=Vs(Ho,t),[i,s]=y.useState(!1),[a,l]=y.useState(!1);return SS(()=>s(!0)),y.useEffect(()=>{const u=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(u)},[]),a?null:h.jsx(rg,{asChild:!0,children:h.jsx(ac,{...r,children:i&&h.jsxs(h.Fragment,{children:[o.label," ",n]})})})},xS="ToastTitle",cg=y.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return h.jsx(Re.div,{...r,ref:t})});cg.displayName=xS;var wS="ToastDescription",dg=y.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return h.jsx(Re.div,{...r,ref:t})});dg.displayName=wS;var fg="ToastAction",pg=y.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?h.jsx(mg,{altText:n,asChild:!0,children:h.jsx(cc,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${fg}\`. Expected non-empty \`string\`.`),null)});pg.displayName=fg;var hg="ToastClose",cc=y.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=gS(hg,n);return h.jsx(mg,{asChild:!0,children:h.jsx(Re.button,{type:"button",...r,ref:t,onClick:ce(e.onClick,o.onClose)})})});cc.displayName=hg;var mg=y.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return h.jsx(Re.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function gg(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),TS(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",i=r.dataset.radixToastAnnounceExclude==="";if(!o)if(i){const s=r.dataset.radixToastAnnounceAlt;s&&t.push(s)}else t.push(...gg(r))}}),t}function vi(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Zm(o,i):o.dispatchEvent(i)}var af=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),i=r>o;return t==="left"||t==="right"?i&&r>n:!i&&o>n};function SS(e=()=>{}){const t=cn(e);br(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function TS(e){return e.nodeType===e.ELEMENT_NODE}function CS(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Ta(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var ES=ig,vg=ag,yg=ug,xg=cg,wg=dg,Sg=pg,Tg=cc;const lf=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,uf=Wm,Cg=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return uf(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:i}=t,s=Object.keys(o).map(u=>{const c=n==null?void 0:n[u],d=i==null?void 0:i[u];if(c===null)return null;const f=lf(c)||lf(d);return o[u][f]}),a=n&&Object.entries(n).reduce((u,c)=>{let[d,f]=c;return f===void 0||(u[d]=f),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:d,className:f,...g}=c;return Object.entries(g).every(w=>{let[x,S]=w;return Array.isArray(S)?S.includes({...i,...a}[x]):{...i,...a}[x]===S})?[...u,d,f]:u},[]);return uf(e,s,l,n==null?void 0:n.class,n==null?void 0:n.className)};var PS={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const bS=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ze=(e,t)=>{const n=y.forwardRef(({color:r="currentColor",size:o=24,strokeWidth:i=2,absoluteStrokeWidth:s,children:a,...l},u)=>y.createElement("svg",{ref:u,...PS,width:o,height:o,stroke:r,strokeWidth:s?Number(i)*24/Number(o):i,className:`lucide lucide-${bS(e)}`,...l},[...t.map(([c,d])=>y.createElement(c,d)),...(Array.isArray(a)?a:[a])||[]]));return n.displayName=`${e}`,n},cf=Ze("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]),Bl=Ze("Award",[["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}],["path",{d:"M15.477 12.89 17 22l-5-3-5 3 1.523-9.11",key:"em7aur"}]]),dc=Ze("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]),Ul=Ze("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]),kS=Ze("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]),Eg=Ze("MapPin",[["path",{d:"M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z",key:"2oe9fu"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]),NS=Ze("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]),Pg=Ze("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]),RS=Ze("Send",[["path",{d:"m22 2-7 20-4-9-9-4Z",key:"1q3vgg"}],["path",{d:"M22 2 11 13",key:"nzbqef"}]]),AS=Ze("ShoppingCart",[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]]),$l=Ze("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]),jS=Ze("UtensilsCrossed",[["path",{d:"m16 2-2.3 2.3a3 3 0 0 0 0 4.2l1.8 1.8a3 3 0 0 0 4.2 0L22 8",key:"n7qcjb"}],["path",{d:"M15 15 3.3 3.3a4.2 4.2 0 0 0 0 6l7.3 7.3c.7.7 2 .7 2.8 0L15 15Zm0 0 7 7",key:"d0u48b"}],["path",{d:"m2.1 21.8 6.4-6.3",key:"yn04lh"}],["path",{d:"m19 5-7 7",key:"194lzd"}]]),bg=Ze("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),MS=ES,kg=Y.forwardRef(({className:e,...t},n)=>h.jsx(vg,{ref:n,className:Tt("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));kg.displayName=vg.displayName;const LS=Cg("data-[swipe=move]:transition-none group relative pointer-events-auto flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full data-[state=closed]:slide-out-to-right-full",{variants:{variant:{default:"bg-background border",destructive:"group destructive border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),Ng=Y.forwardRef(({className:e,variant:t,...n},r)=>h.jsx(yg,{ref:r,className:Tt(LS({variant:t}),e),...n}));Ng.displayName=yg.displayName;const OS=Y.forwardRef(({className:e,...t},n)=>h.jsx(Sg,{ref:n,className:Tt("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-destructive/30 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));OS.displayName=Sg.displayName;const Rg=Y.forwardRef(({className:e,...t},n)=>h.jsx(Tg,{ref:n,className:Tt("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:h.jsx(bg,{className:"h-4 w-4"})}));Rg.displayName=Tg.displayName;const Ag=Y.forwardRef(({className:e,...t},n)=>h.jsx(xg,{ref:n,className:Tt("text-sm font-semibold",e),...t}));Ag.displayName=xg.displayName;const jg=Y.forwardRef(({className:e,...t},n)=>h.jsx(wg,{ref:n,className:Tt("text-sm opacity-90",e),...t}));jg.displayName=wg.displayName;const IS=1;let Ca=0;function _S(){return Ca=(Ca+1)%Number.MAX_VALUE,Ca.toString()}const Ae={state:{toasts:[]},listeners:[],getState:()=>Ae.state,setState:e=>{typeof e=="function"?Ae.state=e(Ae.state):Ae.state={...Ae.state,...e},Ae.listeners.forEach(t=>t(Ae.state))},subscribe:e=>(Ae.listeners.push(e),()=>{Ae.listeners=Ae.listeners.filter(t=>t!==e)})},DS=({...e})=>{const t=_S(),n=o=>Ae.setState(i=>({...i,toasts:i.toasts.map(s=>s.id===t?{...s,...o}:s)})),r=()=>Ae.setState(o=>({...o,toasts:o.toasts.filter(i=>i.id!==t)}));return Ae.setState(o=>({...o,toasts:[{...e,id:t,dismiss:r},...o.toasts].slice(0,IS)})),{id:t,dismiss:r,update:n}};function fc(){const[e,t]=y.useState(Ae.getState());return y.useEffect(()=>Ae.subscribe(r=>{t(r)}),[]),y.useEffect(()=>{const n=[];return e.toasts.forEach(r=>{if(r.duration===1/0)return;const o=setTimeout(()=>{r.dismiss()},r.duration||5e3);n.push(o)}),()=>{n.forEach(r=>clearTimeout(r))}},[e.toasts]),{toast:DS,toasts:e.toasts}}function VS(){const{toasts:e}=fc();return h.jsxs(MS,{children:[e.map(({id:t,title:n,description:r,action:o,...i})=>h.jsxs(Ng,{...i,children:[h.jsxs("div",{className:"grid gap-1",children:[n&&h.jsx(Ag,{children:n}),r&&h.jsx(jg,{children:r})]}),o,h.jsx(Rg,{})]},t)),h.jsx(kg,{})]})}const Mg=y.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Fs=y.createContext({}),zs=y.createContext(null),Bs=typeof document<"u",pc=Bs?y.useLayoutEffect:y.useEffect,Lg=y.createContext({strict:!1}),hc=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),FS="framerAppearId",Og="data-"+hc(FS);function zS(e,t,n,r){const{visualElement:o}=y.useContext(Fs),i=y.useContext(Lg),s=y.useContext(zs),a=y.useContext(Mg).reducedMotion,l=y.useRef();r=r||i.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:o,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:a}));const u=l.current;y.useInsertionEffect(()=>{u&&u.update(n,s)});const c=y.useRef(!!(n[Og]&&!window.HandoffComplete));return pc(()=>{u&&(u.render(),c.current&&u.animationState&&u.animationState.animateChanges())}),y.useEffect(()=>{u&&(u.updateFeatures(),!c.current&&u.animationState&&u.animationState.animateChanges(),c.current&&(c.current=!1,window.HandoffComplete=!0))}),u}function ar(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function BS(e,t,n){return y.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):ar(n)&&(n.current=r))},[t])}function Oo(e){return typeof e=="string"||Array.isArray(e)}function Us(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const mc=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],gc=["initial",...mc];function $s(e){return Us(e.animate)||gc.some(t=>Oo(e[t]))}function Ig(e){return!!($s(e)||e.variants)}function US(e,t){if($s(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Oo(n)?n:void 0,animate:Oo(r)?r:void 0}}return e.inherit!==!1?t:{}}function $S(e){const{initial:t,animate:n}=US(e,y.useContext(Fs));return y.useMemo(()=>({initial:t,animate:n}),[df(t),df(n)])}function df(e){return Array.isArray(e)?e.join(" "):e}const ff={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Io={};for(const e in ff)Io[e]={isEnabled:t=>ff[e].some(n=>!!t[n])};function WS(e){for(const t in e)Io[t]={...Io[t],...e[t]}}const vc=y.createContext({}),_g=y.createContext({}),HS=Symbol.for("motionComponentSymbol");function GS({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&WS(e);function i(a,l){let u;const c={...y.useContext(Mg),...a,layoutId:KS(a)},{isStatic:d}=c,f=$S(a),g=r(a,d);if(!d&&Bs){f.visualElement=zS(o,g,c,t);const w=y.useContext(_g),x=y.useContext(Lg).strict;f.visualElement&&(u=f.visualElement.loadFeatures(c,x,e,w))}return y.createElement(Fs.Provider,{value:f},u&&f.visualElement?y.createElement(u,{visualElement:f.visualElement,...c}):null,n(o,a,BS(g,f.visualElement,l),g,d,f.visualElement))}const s=y.forwardRef(i);return s[HS]=o,s}function KS({layoutId:e}){const t=y.useContext(vc).id;return t&&e!==void 0?t+"-"+e:e}function YS(e){function t(r,o={}){return GS(e(r,o))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,o)=>(n.has(o)||n.set(o,t(o)),n.get(o))})}const QS=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function yc(e){return typeof e!="string"||e.includes("-")?!1:!!(QS.indexOf(e)>-1||/[A-Z]/.test(e))}const cs={};function XS(e){Object.assign(cs,e)}const Go=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Wn=new Set(Go);function Dg(e,{layout:t,layoutId:n}){return Wn.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!cs[e]||e==="opacity")}const Ue=e=>!!(e&&e.getVelocity),qS={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ZS=Go.length;function JS(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,o){let i="";for(let s=0;st=>typeof t=="string"&&t.startsWith(e),Fg=Vg("--"),Wl=Vg("var(--"),eT=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,tT=(e,t)=>t&&typeof e=="number"?t.transform(e):e,dn=(e,t,n)=>Math.min(Math.max(n,e),t),Hn={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},co={...Hn,transform:e=>dn(0,1,e)},yi={...Hn,default:1},fo=e=>Math.round(e*1e5)/1e5,Ws=/(-)?([\d]*\.?[\d])+/g,zg=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,nT=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Ko(e){return typeof e=="string"}const Yo=e=>({test:t=>Ko(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),zt=Yo("deg"),St=Yo("%"),_=Yo("px"),rT=Yo("vh"),oT=Yo("vw"),pf={...St,parse:e=>St.parse(e)/100,transform:e=>St.transform(e*100)},hf={...Hn,transform:Math.round},Bg={borderWidth:_,borderTopWidth:_,borderRightWidth:_,borderBottomWidth:_,borderLeftWidth:_,borderRadius:_,radius:_,borderTopLeftRadius:_,borderTopRightRadius:_,borderBottomRightRadius:_,borderBottomLeftRadius:_,width:_,maxWidth:_,height:_,maxHeight:_,size:_,top:_,right:_,bottom:_,left:_,padding:_,paddingTop:_,paddingRight:_,paddingBottom:_,paddingLeft:_,margin:_,marginTop:_,marginRight:_,marginBottom:_,marginLeft:_,rotate:zt,rotateX:zt,rotateY:zt,rotateZ:zt,scale:yi,scaleX:yi,scaleY:yi,scaleZ:yi,skew:zt,skewX:zt,skewY:zt,distance:_,translateX:_,translateY:_,translateZ:_,x:_,y:_,z:_,perspective:_,transformPerspective:_,opacity:co,originX:pf,originY:pf,originZ:_,zIndex:hf,fillOpacity:co,strokeOpacity:co,numOctaves:hf};function xc(e,t,n,r){const{style:o,vars:i,transform:s,transformOrigin:a}=e;let l=!1,u=!1,c=!0;for(const d in t){const f=t[d];if(Fg(d)){i[d]=f;continue}const g=Bg[d],w=tT(f,g);if(Wn.has(d)){if(l=!0,s[d]=w,!c)continue;f!==(g.default||0)&&(c=!1)}else d.startsWith("origin")?(u=!0,a[d]=w):o[d]=w}if(t.transform||(l||r?o.transform=JS(e.transform,n,c,r):o.transform&&(o.transform="none")),u){const{originX:d="50%",originY:f="50%",originZ:g=0}=a;o.transformOrigin=`${d} ${f} ${g}`}}const wc=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Ug(e,t,n){for(const r in t)!Ue(t[r])&&!Dg(r,n)&&(e[r]=t[r])}function iT({transformTemplate:e},t,n){return y.useMemo(()=>{const r=wc();return xc(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function sT(e,t,n){const r=e.style||{},o={};return Ug(o,r,e),Object.assign(o,iT(e,t,n)),e.transformValues?e.transformValues(o):o}function aT(e,t,n){const r={},o=sT(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=o,r}const lT=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function ds(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||lT.has(e)}let $g=e=>!ds(e);function uT(e){e&&($g=t=>t.startsWith("on")?!ds(t):e(t))}try{uT(require("@emotion/is-prop-valid").default)}catch{}function cT(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||($g(o)||n===!0&&ds(o)||!t&&!ds(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function mf(e,t,n){return typeof e=="string"?e:_.transform(t+n*e)}function dT(e,t,n){const r=mf(t,e.x,e.width),o=mf(n,e.y,e.height);return`${r} ${o}`}const fT={offset:"stroke-dashoffset",array:"stroke-dasharray"},pT={offset:"strokeDashoffset",array:"strokeDasharray"};function hT(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?fT:pT;e[i.offset]=_.transform(-r);const s=_.transform(t),a=_.transform(n);e[i.array]=`${s} ${a}`}function Sc(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u},c,d,f){if(xc(e,u,c,f),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:g,style:w,dimensions:x}=e;g.transform&&(x&&(w.transform=g.transform),delete g.transform),x&&(o!==void 0||i!==void 0||w.transform)&&(w.transformOrigin=dT(x,o!==void 0?o:.5,i!==void 0?i:.5)),t!==void 0&&(g.x=t),n!==void 0&&(g.y=n),r!==void 0&&(g.scale=r),s!==void 0&&hT(g,s,a,l,!1)}const Wg=()=>({...wc(),attrs:{}}),Tc=e=>typeof e=="string"&&e.toLowerCase()==="svg";function mT(e,t,n,r){const o=y.useMemo(()=>{const i=Wg();return Sc(i,t,{enableHardwareAcceleration:!1},Tc(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Ug(i,e.style,e),o.style={...i,...o.style}}return o}function gT(e=!1){return(n,r,o,{latestValues:i},s)=>{const l=(yc(n)?mT:aT)(r,i,s,n),c={...cT(r,typeof n=="string",e),...l,ref:o},{children:d}=r,f=y.useMemo(()=>Ue(d)?d.get():d,[d]);return y.createElement(n,{...c,children:f})}}function Hg(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const Gg=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Kg(e,t,n,r){Hg(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(Gg.has(o)?o:hc(o),t.attrs[o])}function Cc(e,t){const{style:n}=e,r={};for(const o in n)(Ue(n[o])||t.style&&Ue(t.style[o])||Dg(o,e))&&(r[o]=n[o]);return r}function Yg(e,t){const n=Cc(e,t);for(const r in e)if(Ue(e[r])||Ue(t[r])){const o=Go.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[o]=e[r]}return n}function Ec(e,t,n,r={},o={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),t}function Qg(e){const t=y.useRef(null);return t.current===null&&(t.current=e()),t.current}const fs=e=>Array.isArray(e),vT=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),yT=e=>fs(e)?e[e.length-1]||0:e;function Oi(e){const t=Ue(e)?e.get():e;return vT(t)?t.toValue():t}function xT({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const s={latestValues:wT(r,o,i,e),renderState:t()};return n&&(s.mount=a=>n(r,a,s)),s}const Xg=e=>(t,n)=>{const r=y.useContext(Fs),o=y.useContext(zs),i=()=>xT(e,t,r,o);return n?i():Qg(i)};function wT(e,t,n,r){const o={},i=r(e,{});for(const f in i)o[f]=Oi(i[f]);let{initial:s,animate:a}=e;const l=$s(e),u=Ig(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const d=c?a:s;return d&&typeof d!="boolean"&&!Us(d)&&(Array.isArray(d)?d:[d]).forEach(g=>{const w=Ec(e,g);if(!w)return;const{transitionEnd:x,transition:S,...v}=w;for(const p in v){let m=v[p];if(Array.isArray(m)){const T=c?m.length-1:0;m=m[T]}m!==null&&(o[p]=m)}for(const p in x)o[p]=x[p]}),o}const de=e=>e;class gf{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function ST(e){let t=new gf,n=new gf,r=0,o=!1,i=!1;const s=new WeakSet,a={schedule:(l,u=!1,c=!1)=>{const d=c&&o,f=d?t:n;return u&&s.add(l),f.add(l)&&d&&o&&(r=t.order.length),l},cancel:l=>{n.remove(l),s.delete(l)},process:l=>{if(o){i=!0;return}if(o=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let u=0;u(d[f]=ST(()=>n=!0),d),{}),s=d=>i[d].process(o),a=()=>{const d=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(d-o.timestamp,TT),1),o.timestamp=d,o.isProcessing=!0,xi.forEach(s),o.isProcessing=!1,n&&t&&(r=!1,e(a))},l=()=>{n=!0,r=!0,o.isProcessing||e(a)};return{schedule:xi.reduce((d,f)=>{const g=i[f];return d[f]=(w,x=!1,S=!1)=>(n||l(),g.schedule(w,x,S)),d},{}),cancel:d=>xi.forEach(f=>i[f].cancel(d)),state:o,steps:i}}const{schedule:X,cancel:_t,state:be,steps:Ea}=CT(typeof requestAnimationFrame<"u"?requestAnimationFrame:de,!0),ET={useVisualState:Xg({scrapeMotionValuesFromProps:Yg,createRenderState:Wg,onMount:(e,t,{renderState:n,latestValues:r})=>{X.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),X.render(()=>{Sc(n,r,{enableHardwareAcceleration:!1},Tc(t.tagName),e.transformTemplate),Kg(t,n)})}})},PT={useVisualState:Xg({scrapeMotionValuesFromProps:Cc,createRenderState:wc})};function bT(e,{forwardMotionProps:t=!1},n,r){return{...yc(e)?ET:PT,preloadedFeatures:n,useRender:gT(t),createVisualElement:r,Component:e}}function Nt(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const qg=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Hs(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const kT=e=>t=>qg(t)&&e(t,Hs(t));function At(e,t,n,r){return Nt(e,t,kT(n),r)}const NT=(e,t)=>n=>t(e(n)),on=(...e)=>e.reduce(NT);function Zg(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const vf=Zg("dragHorizontal"),yf=Zg("dragVertical");function Jg(e){let t=!1;if(e==="y")t=yf();else if(e==="x")t=vf();else{const n=vf(),r=yf();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function ev(){const e=Jg(!0);return e?(e(),!1):!0}class gn{constructor(t){this.isMounted=!1,this.node=t}update(){}}function xf(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),o=(i,s)=>{if(i.pointerType==="touch"||ev())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t),a[r]&&X.update(()=>a[r](i,s))};return At(e.current,n,o,{passive:!e.getProps()[r]})}class RT extends gn{mount(){this.unmount=on(xf(this.node,!0),xf(this.node,!1))}unmount(){}}class AT extends gn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=on(Nt(this.node.current,"focus",()=>this.onFocus()),Nt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const tv=(e,t)=>t?e===t?!0:tv(e,t.parentElement):!1;function Pa(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Hs(n))}class jT extends gn{constructor(){super(...arguments),this.removeStartListeners=de,this.removeEndListeners=de,this.removeAccessibleListeners=de,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),i=At(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c,globalTapTarget:d}=this.node.getProps();X.update(()=>{!d&&!tv(this.node.current,a.target)?c&&c(a,l):u&&u(a,l)})},{passive:!(r.onTap||r.onPointerUp)}),s=At(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=on(i,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=i=>{if(i.key!=="Enter"||this.isPressing)return;const s=a=>{a.key!=="Enter"||!this.checkPressEnd()||Pa("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&X.update(()=>c(l,u))})};this.removeEndListeners(),this.removeEndListeners=Nt(this.node.current,"keyup",s),Pa("down",(a,l)=>{this.startPress(a,l)})},n=Nt(this.node.current,"keydown",t),r=()=>{this.isPressing&&Pa("cancel",(i,s)=>this.cancelPress(i,s))},o=Nt(this.node.current,"blur",r);this.removeAccessibleListeners=on(n,o)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&X.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!ev()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&X.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=At(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=Nt(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=on(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Hl=new WeakMap,ba=new WeakMap,MT=e=>{const t=Hl.get(e.target);t&&t(e)},LT=e=>{e.forEach(MT)};function OT({root:e,...t}){const n=e||document;ba.has(n)||ba.set(n,{});const r=ba.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(LT,{root:e,...t})),r[o]}function IT(e,t,n){const r=OT(t);return Hl.set(e,n),r.observe(e),()=>{Hl.delete(e),r.unobserve(e)}}const _T={some:0,all:1};class DT extends gn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:_T[o]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),f=u?c:d;f&&f(l)};return IT(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(VT(t,n))&&this.startObserver()}unmount(){}}function VT({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const FT={inView:{Feature:DT},tap:{Feature:jT},focus:{Feature:AT},hover:{Feature:RT}};function nv(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rt[r]=n.get()),t}function BT(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function Gs(e,t,n){const r=e.getProps();return Ec(r,t,n!==void 0?n:r.custom,zT(e),BT(e))}let UT=de,Pc=de;const sn=e=>e*1e3,jt=e=>e/1e3,$T={current:!1},rv=e=>Array.isArray(e)&&typeof e[0]=="number";function ov(e){return!!(!e||typeof e=="string"&&iv[e]||rv(e)||Array.isArray(e)&&e.every(ov))}const eo=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,iv={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:eo([0,.65,.55,1]),circOut:eo([.55,0,1,.45]),backIn:eo([.31,.01,.66,-.59]),backOut:eo([.33,1.53,.69,.99])};function sv(e){if(e)return rv(e)?eo(e):Array.isArray(e)?e.map(sv):iv[e]}function WT(e,t,n,{delay:r=0,duration:o,repeat:i=0,repeatType:s="loop",ease:a,times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=sv(a);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"})}function HT(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const av=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,GT=1e-7,KT=12;function YT(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=av(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>GT&&++aYT(i,0,1,e,n);return i=>i===0||i===1?i:av(o(i),t,r)}const QT=Qo(.42,0,1,1),XT=Qo(0,0,.58,1),lv=Qo(.42,0,.58,1),qT=e=>Array.isArray(e)&&typeof e[0]!="number",uv=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,cv=e=>t=>1-e(1-t),bc=e=>1-Math.sin(Math.acos(e)),dv=cv(bc),ZT=uv(bc),fv=Qo(.33,1.53,.69,.99),kc=cv(fv),JT=uv(kc),eC=e=>(e*=2)<1?.5*kc(e):.5*(2-Math.pow(2,-10*(e-1))),tC={linear:de,easeIn:QT,easeInOut:lv,easeOut:XT,circIn:bc,circInOut:ZT,circOut:dv,backIn:kc,backInOut:JT,backOut:fv,anticipate:eC},wf=e=>{if(Array.isArray(e)){Pc(e.length===4);const[t,n,r,o]=e;return Qo(t,n,r,o)}else if(typeof e=="string")return tC[e];return e},Nc=(e,t)=>n=>!!(Ko(n)&&nT.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),pv=(e,t,n)=>r=>{if(!Ko(r))return r;const[o,i,s,a]=r.match(Ws);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},nC=e=>dn(0,255,e),ka={...Hn,transform:e=>Math.round(nC(e))},Rn={test:Nc("rgb","red"),parse:pv("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ka.transform(e)+", "+ka.transform(t)+", "+ka.transform(n)+", "+fo(co.transform(r))+")"};function rC(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const Gl={test:Nc("#"),parse:rC,transform:Rn.transform},lr={test:Nc("hsl","hue"),parse:pv("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+St.transform(fo(t))+", "+St.transform(fo(n))+", "+fo(co.transform(r))+")"},je={test:e=>Rn.test(e)||Gl.test(e)||lr.test(e),parse:e=>Rn.test(e)?Rn.parse(e):lr.test(e)?lr.parse(e):Gl.parse(e),transform:e=>Ko(e)?e:e.hasOwnProperty("red")?Rn.transform(e):lr.transform(e)},se=(e,t,n)=>-n*e+n*t+e;function Na(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function oC({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,s=0;if(!t)o=i=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;o=Na(l,a,e+1/3),i=Na(l,a,e),s=Na(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}const Ra=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},iC=[Gl,Rn,lr],sC=e=>iC.find(t=>t.test(e));function Sf(e){const t=sC(e);let n=t.parse(e);return t===lr&&(n=oC(n)),n}const hv=(e,t)=>{const n=Sf(e),r=Sf(t),o={...n};return i=>(o.red=Ra(n.red,r.red,i),o.green=Ra(n.green,r.green,i),o.blue=Ra(n.blue,r.blue,i),o.alpha=se(n.alpha,r.alpha,i),Rn.transform(o))};function aC(e){var t,n;return isNaN(e)&&Ko(e)&&(((t=e.match(Ws))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(zg))===null||n===void 0?void 0:n.length)||0)>0}const mv={regex:eT,countKey:"Vars",token:"${v}",parse:de},gv={regex:zg,countKey:"Colors",token:"${c}",parse:je.parse},vv={regex:Ws,countKey:"Numbers",token:"${n}",parse:Hn.parse};function Aa(e,{regex:t,countKey:n,token:r,parse:o}){const i=e.tokenised.match(t);i&&(e["num"+n]=i.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...i.map(o)))}function ps(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&Aa(n,mv),Aa(n,gv),Aa(n,vv),n}function yv(e){return ps(e).values}function xv(e){const{values:t,numColors:n,numVars:r,tokenised:o}=ps(e),i=t.length;return s=>{let a=o;for(let l=0;ltypeof e=="number"?0:e;function uC(e){const t=yv(e);return xv(e)(t.map(lC))}const fn={test:aC,parse:yv,createTransformer:xv,getAnimatableNone:uC},wv=(e,t)=>n=>`${n>0?t:e}`;function Sv(e,t){return typeof e=="number"?n=>se(e,t,n):je.test(e)?hv(e,t):e.startsWith("var(")?wv(e,t):Cv(e,t)}const Tv=(e,t)=>{const n=[...e],r=n.length,o=e.map((i,s)=>Sv(i,t[s]));return i=>{for(let s=0;s{const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=Sv(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}},Cv=(e,t)=>{const n=fn.createTransformer(t),r=ps(e),o=ps(t);return r.numVars===o.numVars&&r.numColors===o.numColors&&r.numNumbers>=o.numNumbers?on(Tv(r.values,o.values),n):wv(e,t)},_o=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Tf=(e,t)=>n=>se(e,t,n);function dC(e){return typeof e=="number"?Tf:typeof e=="string"?je.test(e)?hv:Cv:Array.isArray(e)?Tv:typeof e=="object"?cC:Tf}function fC(e,t,n){const r=[],o=n||dC(e[0]),i=e.length-1;for(let s=0;st[0];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=fC(t,r,o),a=s.length,l=u=>{let c=0;if(a>1)for(;cl(dn(e[0],e[i-1],u)):l}function pC(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=_o(0,t,r);e.push(se(n,1,o))}}function hC(e){const t=[0];return pC(t,e.length-1),t}function mC(e,t){return e.map(n=>n*t)}function gC(e,t){return e.map(()=>t||lv).splice(0,e.length-1)}function hs({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=qT(r)?r.map(wf):wf(r),i={done:!1,value:t[0]},s=mC(n&&n.length===t.length?n:hC(t),e),a=Ev(s,t,{ease:Array.isArray(o)?o:gC(t,o)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}function Pv(e,t){return t?e*(1e3/t):0}const vC=5;function bv(e,t,n){const r=Math.max(t-vC,0);return Pv(n-e(r),t-r)}const ja=.001,yC=.01,Cf=10,xC=.05,wC=1;function SC({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;UT(e<=sn(Cf));let s=1-t;s=dn(xC,wC,s),e=dn(yC,Cf,jt(e)),s<1?(o=u=>{const c=u*s,d=c*e,f=c-n,g=Kl(u,s),w=Math.exp(-d);return ja-f/g*w},i=u=>{const d=u*s*e,f=d*n+n,g=Math.pow(s,2)*Math.pow(u,2)*e,w=Math.exp(-d),x=Kl(Math.pow(u,2),s);return(-o(u)+ja>0?-1:1)*((f-g)*w)/x}):(o=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-ja+c*d},i=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const a=5/e,l=CC(o,i,a);if(e=sn(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const TC=12;function CC(e,t,n){let r=n;for(let o=1;oe[n]!==void 0)}function bC(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Ef(e,PC)&&Ef(e,EC)){const n=SC(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function kv({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],i=e[e.length-1],s={done:!1,value:o},{stiffness:a,damping:l,mass:u,duration:c,velocity:d,isResolvedFromDuration:f}=bC({...r,velocity:-jt(r.velocity||0)}),g=d||0,w=l/(2*Math.sqrt(a*u)),x=i-o,S=jt(Math.sqrt(a/u)),v=Math.abs(x)<5;n||(n=v?.01:2),t||(t=v?.005:.5);let p;if(w<1){const m=Kl(S,w);p=T=>{const C=Math.exp(-w*S*T);return i-C*((g+w*S*x)/m*Math.sin(m*T)+x*Math.cos(m*T))}}else if(w===1)p=m=>i-Math.exp(-S*m)*(x+(g+S*x)*m);else{const m=S*Math.sqrt(w*w-1);p=T=>{const C=Math.exp(-w*S*T),b=Math.min(m*T,300);return i-C*((g+w*S*x)*Math.sinh(b)+m*x*Math.cosh(b))/m}}return{calculatedDuration:f&&c||null,next:m=>{const T=p(m);if(f)s.done=m>=c;else{let C=g;m!==0&&(w<1?C=bv(p,m,T):C=0);const b=Math.abs(C)<=n,E=Math.abs(i-T)<=t;s.done=b&&E}return s.value=s.done?i:T,s}}}function Pf({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},g=P=>a!==void 0&&Pl,w=P=>a===void 0?l:l===void 0||Math.abs(a-P)-x*Math.exp(-P/r),m=P=>v+p(P),T=P=>{const R=p(P),j=m(P);f.done=Math.abs(R)<=u,f.value=f.done?v:j};let C,b;const E=P=>{g(f.value)&&(C=P,b=kv({keyframes:[f.value,w(f.value)],velocity:bv(m,P,f.value),damping:o,stiffness:i,restDelta:u,restSpeed:c}))};return E(0),{calculatedDuration:null,next:P=>{let R=!1;return!b&&C===void 0&&(R=!0,T(P),E(P)),C!==void 0&&P>C?b.next(P-C):(!R&&T(P),f)}}}const kC=e=>{const t=({timestamp:n})=>e(n);return{start:()=>X.update(t,!0),stop:()=>_t(t),now:()=>be.isProcessing?be.timestamp:performance.now()}},bf=2e4;function kf(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=bf?1/0:t}const NC={decay:Pf,inertia:Pf,tween:hs,keyframes:hs,spring:kv};function ms({autoplay:e=!0,delay:t=0,driver:n=kC,keyframes:r,type:o="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:a="loop",onPlay:l,onStop:u,onComplete:c,onUpdate:d,...f}){let g=1,w=!1,x,S;const v=()=>{S=new Promise(O=>{x=O})};v();let p;const m=NC[o]||hs;let T;m!==hs&&typeof r[0]!="number"&&(T=Ev([0,100],r,{clamp:!1}),r=[0,100]);const C=m({...f,keyframes:r});let b;a==="mirror"&&(b=m({...f,keyframes:[...r].reverse(),velocity:-(f.velocity||0)}));let E="idle",P=null,R=null,j=null;C.calculatedDuration===null&&i&&(C.calculatedDuration=kf(C));const{calculatedDuration:U}=C;let I=1/0,q=1/0;U!==null&&(I=U+s,q=I*(i+1)-s);let M=0;const G=O=>{if(R===null)return;g>0&&(R=Math.min(R,O)),g<0&&(R=Math.min(O-q/g,R)),P!==null?M=P:M=Math.round(O-R)*g;const $=M-t*(g>=0?1:-1),K=g>=0?$<0:$>q;M=Math.max($,0),E==="finished"&&P===null&&(M=q);let $e=M,Gn=C;if(i){const Ys=Math.min(M,q)/I;let qo=Math.floor(Ys),yn=Ys%1;!yn&&Ys>=1&&(yn=1),yn===1&&qo--,qo=Math.min(qo,i+1),!!(qo%2)&&(a==="reverse"?(yn=1-yn,s&&(yn-=s/I)):a==="mirror"&&(Gn=b)),$e=dn(0,1,yn)*I}const We=K?{done:!1,value:r[0]}:Gn.next($e);T&&(We.value=T(We.value));let{done:vn}=We;!K&&U!==null&&(vn=g>=0?M>=q:M<=0);const My=P===null&&(E==="finished"||E==="running"&&vn);return d&&d(We.value),My&&N(),We},V=()=>{p&&p.stop(),p=void 0},fe=()=>{E="idle",V(),x(),v(),R=j=null},N=()=>{E="finished",c&&c(),V(),x()},L=()=>{if(w)return;p||(p=n(G));const O=p.now();l&&l(),P!==null?R=O-P:(!R||E==="finished")&&(R=O),E==="finished"&&v(),j=R,P=null,E="running",p.start()};e&&L();const D={then(O,$){return S.then(O,$)},get time(){return jt(M)},set time(O){O=sn(O),M=O,P!==null||!p||g===0?P=O:R=p.now()-O/g},get duration(){const O=C.calculatedDuration===null?kf(C):C.calculatedDuration;return jt(O)},get speed(){return g},set speed(O){O===g||!p||(g=O,D.time=jt(M))},get state(){return E},play:L,pause:()=>{E="paused",P=M},stop:()=>{w=!0,E!=="idle"&&(E="idle",u&&u(),fe())},cancel:()=>{j!==null&&G(j),fe()},complete:()=>{E="finished"},sample:O=>(R=0,G(O))};return D}function RC(e){let t;return()=>(t===void 0&&(t=e()),t)}const AC=RC(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),jC=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),wi=10,MC=2e4,LC=(e,t)=>t.type==="spring"||e==="backgroundColor"||!ov(t.ease);function OC(e,t,{onUpdate:n,onComplete:r,...o}){if(!(AC()&&jC.has(t)&&!o.repeatDelay&&o.repeatType!=="mirror"&&o.damping!==0&&o.type!=="inertia"))return!1;let s=!1,a,l,u=!1;const c=()=>{l=new Promise(m=>{a=m})};c();let{keyframes:d,duration:f=300,ease:g,times:w}=o;if(LC(t,o)){const m=ms({...o,repeat:0,delay:0});let T={done:!1,value:d[0]};const C=[];let b=0;for(;!T.done&&b{u=!1,x.cancel()},v=()=>{u=!0,X.update(S),a(),c()};return x.onfinish=()=>{u||(e.set(HT(d,o)),r&&r(),v())},{then(m,T){return l.then(m,T)},attachTimeline(m){return x.timeline=m,x.onfinish=null,de},get time(){return jt(x.currentTime||0)},set time(m){x.currentTime=sn(m)},get speed(){return x.playbackRate},set speed(m){x.playbackRate=m},get duration(){return jt(f)},play:()=>{s||(x.play(),_t(S))},pause:()=>x.pause(),stop:()=>{if(s=!0,x.playState==="idle")return;const{currentTime:m}=x;if(m){const T=ms({...o,autoplay:!1});e.setWithVelocity(T.sample(m-wi).value,T.sample(m).value,wi)}v()},complete:()=>{u||x.finish()},cancel:v}}function IC({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const o=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:de,pause:de,stop:de,then:i=>(i(),Promise.resolve()),cancel:de,complete:de});return t?ms({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}const _C={type:"spring",stiffness:500,damping:25,restSpeed:10},DC=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),VC={type:"keyframes",duration:.8},FC={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},zC=(e,{keyframes:t})=>t.length>2?VC:Wn.has(e)?e.startsWith("scale")?DC(t[1]):_C:FC,Yl=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(fn.test(t)||t==="0")&&!t.startsWith("url(")),BC=new Set(["brightness","contrast","saturate","opacity"]);function UC(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Ws)||[];if(!r)return e;const o=n.replace(r,"");let i=BC.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const $C=/([a-z-]*)\(.*?\)/g,Ql={...fn,getAnimatableNone:e=>{const t=e.match($C);return t?t.map(UC).join(" "):e}},WC={...Bg,color:je,backgroundColor:je,outlineColor:je,fill:je,stroke:je,borderColor:je,borderTopColor:je,borderRightColor:je,borderBottomColor:je,borderLeftColor:je,filter:Ql,WebkitFilter:Ql},Rc=e=>WC[e];function Nv(e,t){let n=Rc(e);return n!==Ql&&(n=fn),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Rv=e=>/^0[^.\s]+$/.test(e);function HC(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||Rv(e)}function GC(e,t,n,r){const o=Yl(t,n);let i;Array.isArray(n)?i=[...n]:i=[null,n];const s=r.from!==void 0?r.from:e.get();let a;const l=[];for(let u=0;uo=>{const i=Ac(r,e)||{},s=i.delay||r.delay||0;let{elapsed:a=0}=r;a=a-sn(s);const l=GC(t,e,n,i),u=l[0],c=l[l.length-1],d=Yl(e,u),f=Yl(e,c);let g={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...i,delay:-a,onUpdate:w=>{t.set(w),i.onUpdate&&i.onUpdate(w)},onComplete:()=>{o(),i.onComplete&&i.onComplete()}};if(KC(i)||(g={...g,...zC(e,g)}),g.duration&&(g.duration=sn(g.duration)),g.repeatDelay&&(g.repeatDelay=sn(g.repeatDelay)),!d||!f||$T.current||i.type===!1||YC.skipAnimations)return IC(g);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const w=OC(t,e,g);if(w)return w}return ms(g)};function gs(e){return!!(Ue(e)&&e.add)}const Av=e=>/^\-?\d*\.?\d+$/.test(e);function Mc(e,t){e.indexOf(t)===-1&&e.push(t)}function Lc(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Oc{constructor(){this.subscriptions=[]}add(t){return Mc(this.subscriptions,t),()=>Lc(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i!isNaN(parseFloat(e));class XC{constructor(t,n={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,o=!0)=>{this.prev=this.current,this.current=r;const{delta:i,timestamp:s}=be;this.lastUpdated!==s&&(this.timeDelta=i,this.lastUpdated=s,X.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>X.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=QC(this.current),this.owner=n.owner}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Oc);const r=this.events[t].add(n);return t==="change"?()=>{r(),X.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=t,this.timeDelta=r}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?Pv(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function kr(e,t){return new XC(e,t)}const jv=e=>t=>t.test(e),qC={test:e=>e==="auto",parse:e=>e},Mv=[Hn,_,St,zt,oT,rT,qC],Hr=e=>Mv.find(jv(e)),ZC=[...Mv,je,fn],JC=e=>ZC.find(jv(e));function eE(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,kr(n))}function tE(e,t){const n=Gs(e,t);let{transitionEnd:r={},transition:o={},...i}=n?e.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const s in i){const a=yT(i[s]);eE(e,s,a)}}function nE(e,t,n){var r,o;const i=Object.keys(t).filter(a=>!e.hasValue(a)),s=i.length;if(s)for(let a=0;al.remove(d))),u.push(S)}return s&&Promise.all(u).then(()=>{s&&tE(e,s)}),u}function Xl(e,t,n={}){const r=Gs(e,t,n.custom);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(Lv(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:d}=o;return aE(e,t,u+l,c,d,n)}:()=>Promise.resolve(),{when:a}=o;if(a){const[l,u]=a==="beforeChildren"?[i,s]:[s,i];return l().then(()=>u())}else return Promise.all([i(),s(n.delay)])}function aE(e,t,n=0,r=0,o=1,i){const s=[],a=(e.variantChildren.size-1)*r,l=o===1?(u=0)=>u*r:(u=0)=>a-u*r;return Array.from(e.variantChildren).sort(lE).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(Xl(u,t,{...i,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function lE(e,t){return e.sortNodePosition(t)}function uE(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>Xl(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=Xl(e,t,n);else{const o=typeof t=="function"?Gs(e,t,n.custom):t;r=Promise.all(Lv(e,o,n))}return r.then(()=>e.notify("AnimationComplete",t))}const cE=[...mc].reverse(),dE=mc.length;function fE(e){return t=>Promise.all(t.map(({animation:n,options:r})=>uE(e,n,r)))}function pE(e){let t=fE(e);const n=mE();let r=!0;const o=(l,u)=>{const c=Gs(e,u);if(c){const{transition:d,transitionEnd:f,...g}=c;l={...l,...g,...f}}return l};function i(l){t=l(e)}function s(l,u){const c=e.getProps(),d=e.getVariantContext(!0)||{},f=[],g=new Set;let w={},x=1/0;for(let v=0;vx&&C,j=!1;const U=Array.isArray(T)?T:[T];let I=U.reduce(o,{});b===!1&&(I={});const{prevResolvedValues:q={}}=m,M={...q,...I},G=V=>{R=!0,g.has(V)&&(j=!0,g.delete(V)),m.needsAnimating[V]=!0};for(const V in M){const fe=I[V],N=q[V];if(w.hasOwnProperty(V))continue;let L=!1;fs(fe)&&fs(N)?L=!nv(fe,N):L=fe!==N,L?fe!==void 0?G(V):g.add(V):fe!==void 0&&g.has(V)?G(V):m.protectedKeys[V]=!0}m.prevProp=T,m.prevResolvedValues=I,m.isActive&&(w={...w,...I}),r&&e.blockInitialAnimation&&(R=!1),R&&(!E||j)&&f.push(...U.map(V=>({animation:V,options:{type:p,...l}})))}if(g.size){const v={};g.forEach(p=>{const m=e.getBaseTarget(p);m!==void 0&&(v[p]=m)}),f.push({animation:v})}let S=!!f.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(S=!1),r=!1,S?t(f):Promise.resolve()}function a(l,u,c){var d;if(n[l].isActive===u)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(g=>{var w;return(w=g.animationState)===null||w===void 0?void 0:w.setActive(l,u)}),n[l].isActive=u;const f=s(c,l);for(const g in n)n[g].protectedKeys={};return f}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>n}}function hE(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!nv(t,e):!1}function xn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function mE(){return{animate:xn(!0),whileInView:xn(),whileHover:xn(),whileTap:xn(),whileDrag:xn(),whileFocus:xn(),exit:xn()}}class gE extends gn{constructor(t){super(t),t.animationState||(t.animationState=pE(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Us(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let vE=0;class yE extends gn{constructor(){super(...arguments),this.id=vE++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;const i=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const xE={animation:{Feature:gE},exit:{Feature:yE}},Nf=(e,t)=>Math.abs(e-t);function wE(e,t){const n=Nf(e.x,t.x),r=Nf(e.y,t.y);return Math.sqrt(n**2+r**2)}class Ov{constructor(t,n,{transformPagePoint:r,contextWindow:o,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=La(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,g=wE(d.offset,{x:0,y:0})>=3;if(!f&&!g)return;const{point:w}=d,{timestamp:x}=be;this.history.push({...w,timestamp:x});const{onStart:S,onMove:v}=this.handlers;f||(S&&S(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=Ma(f,this.transformPagePoint),X.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:g,onSessionEnd:w,resumeAnimation:x}=this.handlers;if(this.dragSnapToOrigin&&x&&x(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const S=La(d.type==="pointercancel"?this.lastMoveEventInfo:Ma(f,this.transformPagePoint),this.history);this.startEvent&&g&&g(d,S),w&&w(d,S)},!qg(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=o||window;const s=Hs(t),a=Ma(s,this.transformPagePoint),{point:l}=a,{timestamp:u}=be;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,La(a,this.history)),this.removeListeners=on(At(this.contextWindow,"pointermove",this.handlePointerMove),At(this.contextWindow,"pointerup",this.handlePointerUp),At(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),_t(this.updatePoint)}}function Ma(e,t){return t?{point:t(e.point)}:e}function Rf(e,t){return{x:e.x-t.x,y:e.y-t.y}}function La({point:e},t){return{point:e,delta:Rf(e,Iv(t)),offset:Rf(e,SE(t)),velocity:TE(t,.1)}}function SE(e){return e[0]}function Iv(e){return e[e.length-1]}function TE(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=Iv(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>sn(t)));)n--;if(!r)return{x:0,y:0};const i=jt(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Qe(e){return e.max-e.min}function ql(e,t=0,n=.01){return Math.abs(e-t)<=n}function Af(e,t,n,r=.5){e.origin=r,e.originPoint=se(t.min,t.max,e.origin),e.scale=Qe(n)/Qe(t),(ql(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=se(n.min,n.max,e.origin)-e.originPoint,(ql(e.translate)||isNaN(e.translate))&&(e.translate=0)}function po(e,t,n,r){Af(e.x,t.x,n.x,r?r.originX:void 0),Af(e.y,t.y,n.y,r?r.originY:void 0)}function jf(e,t,n){e.min=n.min+t.min,e.max=e.min+Qe(t)}function CE(e,t,n){jf(e.x,t.x,n.x),jf(e.y,t.y,n.y)}function Mf(e,t,n){e.min=t.min-n.min,e.max=e.min+Qe(t)}function ho(e,t,n){Mf(e.x,t.x,n.x),Mf(e.y,t.y,n.y)}function EE(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?se(n,e,r.max):Math.min(e,n)),e}function Lf(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function PE(e,{top:t,left:n,bottom:r,right:o}){return{x:Lf(e.x,n,o),y:Lf(e.y,t,r)}}function Of(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=_o(t.min,t.max-r,e.min):r>o&&(n=_o(e.min,e.max-o,t.min)),dn(0,1,n)}function NE(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Zl=.35;function RE(e=Zl){return e===!1?e=0:e===!0&&(e=Zl),{x:If(e,"left","right"),y:If(e,"top","bottom")}}function If(e,t,n){return{min:_f(e,t),max:_f(e,n)}}function _f(e,t){return typeof e=="number"?e:e[t]||0}const Df=()=>({translate:0,scale:1,origin:0,originPoint:0}),ur=()=>({x:Df(),y:Df()}),Vf=()=>({min:0,max:0}),he=()=>({x:Vf(),y:Vf()});function et(e){return[e("x"),e("y")]}function _v({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function AE({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function jE(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Oa(e){return e===void 0||e===1}function Jl({scale:e,scaleX:t,scaleY:n}){return!Oa(e)||!Oa(t)||!Oa(n)}function Tn(e){return Jl(e)||Dv(e)||e.z||e.rotate||e.rotateX||e.rotateY}function Dv(e){return Ff(e.x)||Ff(e.y)}function Ff(e){return e&&e!=="0%"}function vs(e,t,n){const r=e-n,o=t*r;return n+o}function zf(e,t,n,r,o){return o!==void 0&&(e=vs(e,o,r)),vs(e,n,r)+t}function eu(e,t=0,n=1,r,o){e.min=zf(e.min,t,n,r,o),e.max=zf(e.max,t,n,r,o)}function Vv(e,{x:t,y:n}){eu(e.x,t.translate,t.scale,t.originPoint),eu(e.y,n.translate,n.scale,n.originPoint)}function ME(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,s;for(let a=0;a1.0000000000001||e<.999999999999?e:1}function $t(e,t){e.min=e.min+t,e.max=e.max+t}function Uf(e,t,[n,r,o]){const i=t[o]!==void 0?t[o]:.5,s=se(e.min,e.max,i);eu(e,t[n],t[r],s,t.scale)}const LE=["x","scaleX","originX"],OE=["y","scaleY","originY"];function cr(e,t){Uf(e.x,t,LE),Uf(e.y,t,OE)}function Fv(e,t){return _v(jE(e.getBoundingClientRect(),t))}function IE(e,t,n){const r=Fv(e,n),{scroll:o}=t;return o&&($t(r.x,o.offset.x),$t(r.y,o.offset.y)),r}const zv=({current:e})=>e?e.ownerDocument.defaultView:null,_E=new WeakMap;class DE{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=he(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const o=c=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Hs(c,"page").point)},i=(c,d)=>{const{drag:f,dragPropagation:g,onDragStart:w}=this.getProps();if(f&&!g&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Jg(f),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),et(S=>{let v=this.getAxisMotionValue(S).get()||0;if(St.test(v)){const{projection:p}=this.visualElement;if(p&&p.layout){const m=p.layout.layoutBox[S];m&&(v=Qe(m)*(parseFloat(v)/100))}}this.originPoint[S]=v}),w&&X.update(()=>w(c,d),!1,!0);const{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},s=(c,d)=>{const{dragPropagation:f,dragDirectionLock:g,onDirectionLock:w,onDrag:x}=this.getProps();if(!f&&!this.openGlobalLock)return;const{offset:S}=d;if(g&&this.currentDirection===null){this.currentDirection=VE(S),this.currentDirection!==null&&w&&w(this.currentDirection);return}this.updateAxis("x",d.point,S),this.updateAxis("y",d.point,S),this.visualElement.render(),x&&x(c,d)},a=(c,d)=>this.stop(c,d),l=()=>et(c=>{var d;return this.getAnimationState(c)==="paused"&&((d=this.getAxisMotionValue(c).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new Ov(t,{onSessionStart:o,onStart:i,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:zv(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:i}=this.getProps();i&&X.update(()=>i(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!Si(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=EE(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;n&&ar(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=PE(o.layoutBox,n):this.constraints=!1,this.elastic=RE(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&et(s=>{this.getAxisMotionValue(s)&&(this.constraints[s]=NE(o.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!ar(t))return!1;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=IE(r,o.root,this.visualElement.getTransformPagePoint());let s=bE(o.layout.layoutBox,i);if(n){const a=n(AE(s));this.hasMutatedConstraints=!!a,a&&(s=_v(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=et(c=>{if(!Si(c,n,this.currentDirection))return;let d=l&&l[c]||{};s&&(d={min:0,max:0});const f=o?200:1e6,g=o?40:1e7,w={type:"inertia",velocity:r?t[c]:0,bounceStiffness:f,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(c,w)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(jc(t,r,0,n))}stopAnimation(){et(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){et(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){et(n=>{const{drag:r}=this.getProps();if(!Si(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:s,max:a}=o.layout.layoutBox[n];i.set(t[n]-se(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!ar(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};et(s=>{const a=this.getAxisMotionValue(s);if(a){const l=a.get();o[s]=kE({min:l,max:l},this.constraints[s])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),et(s=>{if(!Si(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set(se(l,u,o[s]))})}addListeners(){if(!this.visualElement.current)return;_E.set(this.visualElement,this);const t=this.visualElement.current,n=At(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();ar(l)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),r();const s=Nt(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(et(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=l[c].translate,d.set(d.get()+l[c].translate))}),this.visualElement.render())});return()=>{s(),n(),i(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:s=Zl,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function Si(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function VE(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class FE extends gn{constructor(t){super(t),this.removeGroupControls=de,this.removeListeners=de,this.controls=new DE(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||de}unmount(){this.removeGroupControls(),this.removeListeners()}}const $f=e=>(t,n)=>{e&&X.update(()=>e(t,n))};class zE extends gn{constructor(){super(...arguments),this.removePointerDownListener=de}onPointerDown(t){this.session=new Ov(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:zv(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:$f(t),onStart:$f(n),onMove:r,onEnd:(i,s)=>{delete this.session,o&&X.update(()=>o(i,s))}}}mount(){this.removePointerDownListener=At(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function BE(){const e=y.useContext(zs);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=y.useId();return y.useEffect(()=>r(o),[]),!t&&n?[!1,()=>n&&n(o)]:[!0]}const Ii={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Wf(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Gr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(_.test(e))e=parseFloat(e);else return e;const n=Wf(e,t.target.x),r=Wf(e,t.target.y);return`${n}% ${r}%`}},UE={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=fn.parse(e);if(o.length>5)return r;const i=fn.createTransformer(e),s=typeof o[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;o[0+s]/=a,o[1+s]/=l;const u=se(a,l,.5);return typeof o[2+s]=="number"&&(o[2+s]/=u),typeof o[3+s]=="number"&&(o[3+s]/=u),i(o)}};class $E extends Y.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;XS(WE),i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Ii.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,s=r.projection;return s&&(s.isPresent=i,o||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||X.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Bv(e){const[t,n]=BE(),r=y.useContext(vc);return Y.createElement($E,{...e,layoutGroup:r,switchLayoutGroup:y.useContext(_g),isPresent:t,safeToRemove:n})}const WE={borderRadius:{...Gr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Gr,borderTopRightRadius:Gr,borderBottomLeftRadius:Gr,borderBottomRightRadius:Gr,boxShadow:UE},Uv=["TopLeft","TopRight","BottomLeft","BottomRight"],HE=Uv.length,Hf=e=>typeof e=="string"?parseFloat(e):e,Gf=e=>typeof e=="number"||_.test(e);function GE(e,t,n,r,o,i){o?(e.opacity=se(0,n.opacity!==void 0?n.opacity:1,KE(r)),e.opacityExit=se(t.opacity!==void 0?t.opacity:1,0,YE(r))):i&&(e.opacity=se(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;srt?1:n(_o(e,t,r))}function Yf(e,t){e.min=t.min,e.max=t.max}function Je(e,t){Yf(e.x,t.x),Yf(e.y,t.y)}function Qf(e,t,n,r,o){return e-=t,e=vs(e,1/n,r),o!==void 0&&(e=vs(e,1/o,r)),e}function QE(e,t=0,n=1,r=.5,o,i=e,s=e){if(St.test(t)&&(t=parseFloat(t),t=se(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=se(i.min,i.max,r);e===i&&(a-=t),e.min=Qf(e.min,t,n,a,o),e.max=Qf(e.max,t,n,a,o)}function Xf(e,t,[n,r,o],i,s){QE(e,t[n],t[r],t[o],t.scale,i,s)}const XE=["x","scaleX","originX"],qE=["y","scaleY","originY"];function qf(e,t,n,r){Xf(e.x,t,XE,n?n.x:void 0,r?r.x:void 0),Xf(e.y,t,qE,n?n.y:void 0,r?r.y:void 0)}function Zf(e){return e.translate===0&&e.scale===1}function Wv(e){return Zf(e.x)&&Zf(e.y)}function ZE(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function Hv(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function Jf(e){return Qe(e.x)/Qe(e.y)}class JE{constructor(){this.members=[]}add(t){Mc(this.members,t),t.scheduleRender()}remove(t){if(Lc(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function ep(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y;if((o||i)&&(r=`translate3d(${o}px, ${i}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:l,rotateX:u,rotateY:c}=n;l&&(r+=`rotate(${l}deg) `),u&&(r+=`rotateX(${u}deg) `),c&&(r+=`rotateY(${c}deg) `)}const s=e.x.scale*t.x,a=e.y.scale*t.y;return(s!==1||a!==1)&&(r+=`scale(${s}, ${a})`),r||"none"}const eP=(e,t)=>e.depth-t.depth;class tP{constructor(){this.children=[],this.isDirty=!1}add(t){Mc(this.children,t),this.isDirty=!0}remove(t){Lc(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(eP),this.isDirty=!1,this.children.forEach(t)}}function nP(e,t){const n=performance.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(_t(r),e(i-t))};return X.read(r,!0),()=>_t(r)}function rP(e){window.MotionDebug&&window.MotionDebug.record(e)}function oP(e){return e instanceof SVGElement&&e.tagName!=="svg"}function iP(e,t,n){const r=Ue(e)?e:kr(e);return r.start(jc("",r,t,n)),r.animation}const tp=["","X","Y","Z"],sP={visibility:"hidden"},np=1e3;let aP=0;const Cn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Gv({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},a=t==null?void 0:t()){this.id=aP++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Cn.totalNodes=Cn.resolvedTargetDeltas=Cn.recalculatedProjection=0,this.nodes.forEach(cP),this.nodes.forEach(mP),this.nodes.forEach(gP),this.nodes.forEach(dP),rP(Cn)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=nP(f,250),Ii.hasAnimatedSinceResize&&(Ii.hasAnimatedSinceResize=!1,this.nodes.forEach(op))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:g,layout:w})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const x=this.options.transition||c.getDefaultTransition()||SP,{onLayoutAnimationStart:S,onLayoutAnimationComplete:v}=c.getProps(),p=!this.targetLayout||!Hv(this.targetLayout,w)||g,m=!f&&g;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||m||f&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,m);const T={...Ac(x,"layout"),onPlay:S,onComplete:v};(c.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T)}else f||op(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=w})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,_t(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(vP),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;cthis.update()))}clearAllSnapshots(){this.nodes.forEach(fP),this.sharedNodes.forEach(yP)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,X.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){X.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const C=T/1e3;ip(d.x,s.x,C),ip(d.y,s.y,C),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ho(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),xP(this.relativeTarget,this.relativeTargetOrigin,f,C),m&&ZE(this.relativeTarget,m)&&(this.isProjectionDirty=!1),m||(m=he()),Je(m,this.relativeTarget)),x&&(this.animationValues=c,GE(c,u,this.latestValues,C,p,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=C},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(_t(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=X.update(()=>{Ii.hasAnimatedSinceResize=!0,this.currentAnimation=iP(0,np,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(np),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=s;if(!(!a||!l||!u)){if(this!==s&&this.layout&&u&&Kv(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||he();const d=Qe(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const f=Qe(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+f}Je(a,l),cr(a,c),po(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new JE),this.sharedNodes.get(s).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(a=!0),!a)return;const u={};for(let c=0;c{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(rp),this.root.sharedNodes.clear()}}}function lP(e){e.updateLayout()}function uP(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=e.layout,{animationType:i}=e.options,s=n.source!==e.layout.source;i==="size"?et(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],g=Qe(f);f.min=r[d].min,f.max=f.min+g}):Kv(i,n.layoutBox,r)&&et(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],g=Qe(r[d]);f.max=f.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+g)});const a=ur();po(a,r,n.layoutBox);const l=ur();s?po(l,e.applyTransform(o,!0),n.measuredBox):po(l,r,n.layoutBox);const u=!Wv(a);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:g}=d;if(f&&g){const w=he();ho(w,n.layoutBox,f.layoutBox);const x=he();ho(x,r,g.layoutBox),Hv(w,x)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=x,e.relativeTargetOrigin=w,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function cP(e){Cn.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function dP(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function fP(e){e.clearSnapshot()}function rp(e){e.clearMeasurements()}function pP(e){e.isLayoutDirty=!1}function hP(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function op(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function mP(e){e.resolveTargetDelta()}function gP(e){e.calcProjection()}function vP(e){e.resetRotation()}function yP(e){e.removeLeadSnapshot()}function ip(e,t,n){e.translate=se(t.translate,0,n),e.scale=se(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function sp(e,t,n,r){e.min=se(t.min,n.min,r),e.max=se(t.max,n.max,r)}function xP(e,t,n,r){sp(e.x,t.x,n.x,r),sp(e.y,t.y,n.y,r)}function wP(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const SP={duration:.45,ease:[.4,0,.1,1]},ap=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),lp=ap("applewebkit/")&&!ap("chrome/")?Math.round:de;function up(e){e.min=lp(e.min),e.max=lp(e.max)}function TP(e){up(e.x),up(e.y)}function Kv(e,t,n){return e==="position"||e==="preserve-aspect"&&!ql(Jf(t),Jf(n),.2)}const CP=Gv({attachResizeListener:(e,t)=>Nt(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ia={current:void 0},Yv=Gv({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ia.current){const e=new CP({});e.mount(window),e.setOptions({layoutScroll:!0}),Ia.current=e}return Ia.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),EP={pan:{Feature:zE},drag:{Feature:FE,ProjectionNode:Yv,MeasureLayout:Bv}},PP=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function bP(e){const t=PP.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}function tu(e,t,n=1){const[r,o]=bP(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return Av(s)?parseFloat(s):s}else return Wl(o)?tu(o,t,n+1):o}function kP(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(o=>{const i=o.get();if(!Wl(i))return;const s=tu(i,r);s&&o.set(s)});for(const o in t){const i=t[o];if(!Wl(i))continue;const s=tu(i,r);s&&(t[o]=s,n||(n={}),n[o]===void 0&&(n[o]=i))}return{target:t,transitionEnd:n}}const NP=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Qv=e=>NP.has(e),RP=e=>Object.keys(e).some(Qv),cp=e=>e===Hn||e===_,dp=(e,t)=>parseFloat(e.split(", ")[t]),fp=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return dp(o[1],t);{const i=r.match(/^matrix\((.+)\)$/);return i?dp(i[1],e):0}},AP=new Set(["x","y","z"]),jP=Go.filter(e=>!AP.has(e));function MP(e){const t=[];return jP.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const Nr={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:fp(4,13),y:fp(5,14)};Nr.translateX=Nr.x;Nr.translateY=Nr.y;const LP=(e,t,n)=>{const r=t.measureViewportBox(),o=t.current,i=getComputedStyle(o),{display:s}=i,a={};s==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(u=>{a[u]=Nr[u](r,i)}),t.render();const l=t.measureViewportBox();return n.forEach(u=>{const c=t.getValue(u);c&&c.jump(a[u]),e[u]=Nr[u](l,i)}),e},OP=(e,t,n={},r={})=>{t={...t},r={...r};const o=Object.keys(t).filter(Qv);let i=[],s=!1;const a=[];if(o.forEach(l=>{const u=e.getValue(l);if(!e.hasValue(l))return;let c=n[l],d=Hr(c);const f=t[l];let g;if(fs(f)){const w=f.length,x=f[0]===null?1:0;c=f[x],d=Hr(c);for(let S=x;S=0?window.pageYOffset:null,u=LP(t,e,a);return i.length&&i.forEach(([c,d])=>{e.getValue(c).set(d)}),e.render(),Bs&&l!==null&&window.scrollTo({top:l}),{target:u,transitionEnd:r}}else return{target:t,transitionEnd:r}};function IP(e,t,n,r){return RP(t)?OP(e,t,n,r):{target:t,transitionEnd:r}}const _P=(e,t,n,r)=>{const o=kP(e,t,r);return t=o.target,r=o.transitionEnd,IP(e,t,n,r)},nu={current:null},Xv={current:!1};function DP(){if(Xv.current=!0,!!Bs)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>nu.current=e.matches;e.addListener(t),t()}else nu.current=!1}function VP(e,t,n){const{willChange:r}=t;for(const o in t){const i=t[o],s=n[o];if(Ue(i))e.addValue(o,i),gs(r)&&r.add(o);else if(Ue(s))e.addValue(o,kr(i,{owner:e})),gs(r)&&r.remove(o);else if(s!==i)if(e.hasValue(o)){const a=e.getValue(o);!a.hasAnimated&&a.set(i)}else{const a=e.getStaticValue(o);e.addValue(o,kr(a!==void 0?a:i,{owner:e}))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const pp=new WeakMap,qv=Object.keys(Io),FP=qv.length,hp=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],zP=gc.length;class BP{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,visualState:i},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>X.render(this.render,!1,!0);const{latestValues:a,renderState:l}=i;this.latestValues=a,this.baseTarget={...a},this.initialValues=n.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=s,this.isControllingVariants=$s(n),this.isVariantNode=Ig(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...c}=this.scrapeMotionValuesFromProps(n,{});for(const d in c){const f=c[d];a[d]!==void 0&&Ue(f)&&(f.set(a[d],!1),gs(u)&&u.add(d))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,pp.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),Xv.current||DP(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:nu.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){pp.delete(this.current),this.projection&&this.projection.unmount(),_t(this.notifyUpdate),_t(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,n){const r=Wn.has(t),o=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&X.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{o(),i()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,o,i){let s,a;for(let l=0;lthis.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:i,layoutScroll:f,layoutRoot:g})}return a}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):he()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,this.props,n)}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get()}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=kr(n,{owner:this}),this.addValue(t,r)),r}readValue(t){var n;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,o=typeof r=="string"||typeof r=="object"?(n=Ec(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Ue(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Oc),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Zv extends BP{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},{transformValues:o},i){let s=oE(r,t||{},this);if(o&&(n&&(n=o(n)),r&&(r=o(r)),s&&(s=o(s))),i){nE(this,r,s);const a=_P(this,r,s,n);n=a.transitionEnd,r=a.target}return{transition:t,transitionEnd:n,...r}}}function UP(e){return window.getComputedStyle(e)}class $P extends Zv{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(Wn.has(n)){const r=Rc(n);return r&&r.default||0}else{const r=UP(t),o=(Fg(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Fv(t,n)}build(t,n,r,o){xc(t,n,r,o.transformTemplate)}scrapeMotionValuesFromProps(t,n){return Cc(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Ue(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,o){Hg(t,n,r,o)}}class WP extends Zv{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Wn.has(n)){const r=Rc(n);return r&&r.default||0}return n=Gg.has(n)?n:hc(n),t.getAttribute(n)}measureInstanceViewportBox(){return he()}scrapeMotionValuesFromProps(t,n){return Yg(t,n)}build(t,n,r,o){Sc(t,n,r,this.isSVGTag,o.transformTemplate)}renderInstance(t,n,r,o){Kg(t,n,r,o)}mount(t){this.isSVGTag=Tc(t.tagName),super.mount(t)}}const HP=(e,t)=>yc(e)?new WP(t,{enableHardwareAcceleration:!1}):new $P(t,{enableHardwareAcceleration:!0}),GP={layout:{ProjectionNode:Yv,MeasureLayout:Bv}},KP={...xE,...FT,...EP,...GP},ee=YS((e,t)=>bT(e,t,KP,HP));function Jv(){const e=y.useRef(!1);return pc(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function YP(){const e=Jv(),[t,n]=y.useState(0),r=y.useCallback(()=>{e.current&&n(t+1)},[t]);return[y.useCallback(()=>X.postRender(r),[r]),t]}class QP extends y.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function XP({children:e,isPresent:t}){const n=y.useId(),r=y.useRef(null),o=y.useRef({width:0,height:0,top:0,left:0});return y.useInsertionEffect(()=>{const{width:i,height:s,top:a,left:l}=o.current;if(t||!r.current||!i||!s)return;r.current.dataset.motionPopId=n;const u=document.createElement("style");return document.head.appendChild(u),u.sheet&&u.sheet.insertRule(` [data-motion-pop-id="${n}"] { position: absolute !important; width: ${i}px !important; height: ${s}px !important; top: ${a}px !important; left: ${l}px !important; } `),()=>{document.head.removeChild(u)}},[t]),y.createElement(QP,{isPresent:t,childRef:r,sizeRef:o},y.cloneElement(e,{ref:r}))}const _a=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s})=>{const a=Qg(qP),l=y.useId(),u=y.useMemo(()=>({id:l,initial:t,isPresent:n,custom:o,onExitComplete:c=>{a.set(c,!0);for(const d of a.values())if(!d)return;r&&r()},register:c=>(a.set(c,!1),()=>a.delete(c))}),i?void 0:[n]);return y.useMemo(()=>{a.forEach((c,d)=>a.set(d,!1))},[n]),y.useEffect(()=>{!n&&!a.size&&r&&r()},[n]),s==="popLayout"&&(e=y.createElement(XP,{isPresent:n},e)),y.createElement(zs.Provider,{value:u},e)};function qP(){return new Map}function ZP(e){return y.useEffect(()=>()=>e(),[])}const En=e=>e.key||"";function JP(e,t){e.forEach(n=>{const r=En(n);t.set(r,n)})}function eb(e){const t=[];return y.Children.forEach(e,n=>{y.isValidElement(n)&&t.push(n)}),t}const tb=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:o,presenceAffectsLayout:i=!0,mode:s="sync"})=>{const a=y.useContext(vc).forceRender||YP()[0],l=Jv(),u=eb(e);let c=u;const d=y.useRef(new Map).current,f=y.useRef(c),g=y.useRef(new Map).current,w=y.useRef(!0);if(pc(()=>{w.current=!1,JP(u,g),f.current=c}),ZP(()=>{w.current=!0,g.clear(),d.clear()}),w.current)return y.createElement(y.Fragment,null,c.map(p=>y.createElement(_a,{key:En(p),isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:i,mode:s},p)));c=[...c];const x=f.current.map(En),S=u.map(En),v=x.length;for(let p=0;p{if(S.indexOf(m)!==-1)return;const T=g.get(m);if(!T)return;const C=x.indexOf(m);let b=p;if(!b){const E=()=>{d.delete(m);const P=Array.from(g.keys()).filter(R=>!S.includes(R));if(P.forEach(R=>g.delete(R)),f.current=u.filter(R=>{const j=En(R);return j===m||P.includes(j)}),!d.size){if(l.current===!1)return;a(),r&&r()}};b=y.createElement(_a,{key:En(T),isPresent:!1,onExitComplete:E,custom:t,presenceAffectsLayout:i,mode:s},T),d.set(m,b)}c.splice(C,0,b)}),c=c.map(p=>{const m=p.key;return d.has(m)?p:y.createElement(_a,{key:En(p),isPresent:!0,presenceAffectsLayout:i,mode:s},p)}),y.createElement(y.Fragment,null,d.size?c:c.map(p=>y.cloneElement(p)))},nb=()=>{const[e,t]=y.useState(!1),n=Wo(),r=[{name:"Início",path:"/"},{name:"Sobre Nós",path:"/sobre"},{name:"Nosso Cardápio",path:"/cardapio"},{name:"Contato",path:"/contato"}],o=i=>n.pathname===i;return h.jsx("header",{className:"sticky top-0 z-50 bg-white/95 backdrop-blur-sm shadow-md",children:h.jsxs("nav",{className:"container mx-auto px-4 py-4",children:[h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsxs(vr,{to:"/",className:"flex items-center space-x-2 group",children:[h.jsx("div",{className:"bg-gradient-to-br from-amber-400 to-yellow-500 p-2 rounded-full group-hover:scale-110 transition-transform",children:h.jsx(jS,{className:"w-6 h-6 text-white"})}),h.jsx("span",{className:"text-2xl font-bold gradient-text",children:"Comida Caseira"})]}),h.jsx("div",{className:"hidden md:flex items-center space-x-8",children:r.map(i=>h.jsxs(vr,{to:i.path,className:`relative font-medium transition-colors ${o(i.path)?"text-amber-500":"text-gray-700 hover:text-amber-500"}`,children:[i.name,o(i.path)&&h.jsx(ee.div,{layoutId:"activeTab",className:"absolute -bottom-1 left-0 right-0 h-0.5 bg-amber-500",initial:!1,transition:{type:"spring",stiffness:500,damping:30}})]},i.path))}),h.jsx("button",{onClick:()=>t(!e),className:"md:hidden p-2 rounded-lg hover:bg-amber-50 transition-colors",children:e?h.jsx(bg,{className:"w-6 h-6 text-amber-500"}):h.jsx(NS,{className:"w-6 h-6 text-amber-500"})})]}),h.jsx(tb,{children:e&&h.jsx(ee.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.3},className:"md:hidden overflow-hidden",children:h.jsx("div",{className:"pt-4 pb-2 space-y-2",children:r.map(i=>h.jsx(vr,{to:i.path,onClick:()=>t(!1),className:`block px-4 py-2 rounded-lg font-medium transition-colors ${o(i.path)?"bg-amber-50 text-amber-500":"text-gray-700 hover:bg-amber-50 hover:text-amber-500"}`,children:i.name},i.path))})})})]})})},rb=()=>h.jsx("footer",{className:"bg-gradient-to-br from-amber-50 to-yellow-50 border-t border-amber-100",children:h.jsxs("div",{className:"container mx-auto px-4 py-12",children:[h.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:[h.jsxs("div",{className:"space-y-4",children:[h.jsx("h3",{className:"text-xl font-bold text-amber-600",children:"Comida Caseira"}),h.jsx("p",{className:"text-gray-600",children:"Sabor de casa, feito com carinho e ingredientes frescos todos os dias."})]}),h.jsxs("div",{className:"space-y-4",children:[h.jsx("h3",{className:"text-xl font-bold text-amber-600",children:"Contato"}),h.jsxs("div",{className:"space-y-3",children:[h.jsxs("div",{className:"flex items-start space-x-3",children:[h.jsx(Eg,{className:"w-5 h-5 text-amber-500 mt-1 flex-shrink-0"}),h.jsx("span",{className:"text-gray-600",children:"Rua Bonfim, número 899"})]}),h.jsxs("div",{className:"flex items-center space-x-3",children:[h.jsx(Pg,{className:"w-5 h-5 text-amber-500 flex-shrink-0"}),h.jsx("span",{className:"text-gray-600",children:"99 99999999"})]})]})]}),h.jsxs("div",{className:"space-y-4",children:[h.jsx("h3",{className:"text-xl font-bold text-amber-600",children:"Horário"}),h.jsxs("div",{className:"flex items-start space-x-3",children:[h.jsx(dc,{className:"w-5 h-5 text-amber-500 mt-1 flex-shrink-0"}),h.jsxs("div",{className:"text-gray-600",children:[h.jsx("p",{children:"Segunda a Sexta: 11h - 15h"}),h.jsx("p",{children:"Sábado: 11h - 16h"}),h.jsx("p",{children:"Domingo: Fechado"})]})]})]})]}),h.jsx("div",{className:"mt-8 pt-8 border-t border-amber-200 text-center",children:h.jsx("p",{className:"text-gray-600",children:"© 2025 Restaurante Comida Caseira. Todos os direitos reservados."})})]})});var ey={exports:{}},ob="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",ib=ob,sb=ib;function ty(){}function ny(){}ny.resetWarningCache=ty;var ab=function(){function e(r,o,i,s,a,l){if(l!==sb){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:ny,resetWarningCache:ty};return n.PropTypes=n,n};ey.exports=ab();var lb=ey.exports;const ne=Ar(lb);function ub(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var ry=y,cb=ub(ry);function mp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function db(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var fb=!!(typeof window<"u"&&window.document&&window.document.createElement);function pb(e,t,n){if(typeof e!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof t!="function")throw new Error("Expected handleStateChangeOnClient to be a function.");if(typeof n<"u"&&typeof n!="function")throw new Error("Expected mapStateOnServer to either be undefined or a function.");function r(o){return o.displayName||o.name||"Component"}return function(i){if(typeof i!="function")throw new Error("Expected WrappedComponent to be a React component.");var s=[],a;function l(){a=e(s.map(function(c){return c.props})),u.canUseDOM?t(a):n&&(a=n(a))}var u=function(c){db(d,c);function d(){return c.apply(this,arguments)||this}d.peek=function(){return a},d.rewind=function(){if(d.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var w=a;return a=void 0,s=[],w};var f=d.prototype;return f.UNSAFE_componentWillMount=function(){s.push(this),l()},f.componentDidUpdate=function(){l()},f.componentWillUnmount=function(){var w=s.indexOf(this);s.splice(w,1),l()},f.render=function(){return cb.createElement(i,this.props)},d}(ry.PureComponent);return mp(u,"displayName","SideEffect("+r(i)+")"),mp(u,"canUseDOM",fb),u}}var hb=pb;const mb=Ar(hb);var gb=typeof Element<"u",vb=typeof Map=="function",yb=typeof Set=="function",xb=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function _i(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,o;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!_i(e[r],t[r]))return!1;return!0}var i;if(vb&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!_i(r.value[1],t.get(r.value[0])))return!1;return!0}if(yb&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(xb&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if(gb&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((o[r]==="_owner"||o[r]==="__v"||o[r]==="__o")&&e.$$typeof)&&!_i(e[o[r]],t[o[r]]))return!1;return!0}return e!==e&&t!==t}var wb=function(t,n){try{return _i(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const Sb=Ar(wb);/* object-assign (c) Sindre Sorhus @license MIT */var gp=Object.getOwnPropertySymbols,Tb=Object.prototype.hasOwnProperty,Cb=Object.prototype.propertyIsEnumerable;function Eb(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Pb(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(i){return t[i]});if(r.join("")!=="0123456789")return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(i){o[i]=i}),Object.keys(Object.assign({},o)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var bb=Pb()?Object.assign:function(e,t){for(var n,r=Eb(e),o,i=1;i=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},Ob=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e},ru=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return n===!1?String(t):String(t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")},Ib=function(t){var n=yr(t,F.TITLE),r=yr(t,Do.TITLE_TEMPLATE);if(r&&n)return r.replace(/%s/g,function(){return Array.isArray(n)?n.join(""):n});var o=yr(t,Do.DEFAULT_TITLE);return n||o||void 0},_b=function(t){return yr(t,Do.ON_CHANGE_CLIENT_STATE)||function(){}},Da=function(t,n){return n.filter(function(r){return typeof r[t]<"u"}).map(function(r){return r[t]}).reduce(function(r,o){return _e({},r,o)},{})},Db=function(t,n){return n.filter(function(r){return typeof r[F.BASE]<"u"}).map(function(r){return r[F.BASE]}).reverse().reduce(function(r,o){if(!r.length)for(var i=Object.keys(o),s=0;s=0;r--){var o=t[r];if(o.hasOwnProperty(n))return o[n]}return null},Vb=function(t){return{baseTag:Db([re.HREF,re.TARGET],t),bodyAttributes:Da(Mn.BODY,t),defer:yr(t,Do.DEFER),encode:yr(t,Do.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:Da(Mn.HTML,t),linkTags:Kr(F.LINK,[re.REL,re.HREF],t),metaTags:Kr(F.META,[re.NAME,re.CHARSET,re.HTTPEQUIV,re.PROPERTY,re.ITEM_PROP],t),noscriptTags:Kr(F.NOSCRIPT,[re.INNER_HTML],t),onChangeClientState:_b(t),scriptTags:Kr(F.SCRIPT,[re.SRC,re.INNER_HTML],t),styleTags:Kr(F.STYLE,[re.CSS_TEXT],t),title:Ib(t),titleAttributes:Da(Mn.TITLE,t)}},ou=function(){var e=Date.now();return function(t){var n=Date.now();n-e>16?(e=n,t(n)):setTimeout(function(){ou(t)},0)}}(),yp=function(t){return clearTimeout(t)},Fb=typeof window<"u"?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||ou:global.requestAnimationFrame||ou,zb=typeof window<"u"?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||yp:global.cancelAnimationFrame||yp,Bb=function(t){return console&&typeof console.warn=="function"&&console.warn(t)},Yr=null,Ub=function(t){Yr&&zb(Yr),t.defer?Yr=Fb(function(){xp(t,function(){Yr=null})}):(xp(t),Yr=null)},xp=function(t,n){var r=t.baseTag,o=t.bodyAttributes,i=t.htmlAttributes,s=t.linkTags,a=t.metaTags,l=t.noscriptTags,u=t.onChangeClientState,c=t.scriptTags,d=t.styleTags,f=t.title,g=t.titleAttributes;iu(F.BODY,o),iu(F.HTML,i),$b(f,g);var w={baseTag:Yn(F.BASE,r),linkTags:Yn(F.LINK,s),metaTags:Yn(F.META,a),noscriptTags:Yn(F.NOSCRIPT,l),scriptTags:Yn(F.SCRIPT,c),styleTags:Yn(F.STYLE,d)},x={},S={};Object.keys(w).forEach(function(v){var p=w[v],m=p.newTags,T=p.oldTags;m.length&&(x[v]=m),T.length&&(S[v]=w[v].oldTags)}),n&&n(),u(t,x,S)},oy=function(t){return Array.isArray(t)?t.join(""):t},$b=function(t,n){typeof t<"u"&&document.title!==t&&(document.title=oy(t)),iu(F.TITLE,n)},iu=function(t,n){var r=document.getElementsByTagName(t)[0];if(r){for(var o=r.getAttribute(ft),i=o?o.split(","):[],s=[].concat(i),a=Object.keys(n),l=0;l=0;f--)r.removeAttribute(s[f]);i.length===s.length?r.removeAttribute(ft):r.getAttribute(ft)!==a.join(",")&&r.setAttribute(ft,a.join(","))}},Yn=function(t,n){var r=document.head||document.querySelector(F.HEAD),o=r.querySelectorAll(t+"["+ft+"]"),i=Array.prototype.slice.call(o),s=[],a=void 0;return n&&n.length&&n.forEach(function(l){var u=document.createElement(t);for(var c in l)if(l.hasOwnProperty(c))if(c===re.INNER_HTML)u.innerHTML=l.innerHTML;else if(c===re.CSS_TEXT)u.styleSheet?u.styleSheet.cssText=l.cssText:u.appendChild(document.createTextNode(l.cssText));else{var d=typeof l[c]>"u"?"":l[c];u.setAttribute(c,d)}u.setAttribute(ft,"true"),i.some(function(f,g){return a=g,u.isEqualNode(f)})?i.splice(a,1):s.push(u)}),i.forEach(function(l){return l.parentNode.removeChild(l)}),s.forEach(function(l){return r.appendChild(l)}),{oldTags:i,newTags:s}},iy=function(t){return Object.keys(t).reduce(function(n,r){var o=typeof t[r]<"u"?r+'="'+t[r]+'"':""+r;return n?n+" "+o:o},"")},Wb=function(t,n,r,o){var i=iy(r),s=oy(n);return i?"<"+t+" "+ft+'="true" '+i+">"+ru(s,o)+"":"<"+t+" "+ft+'="true">'+ru(s,o)+""},Hb=function(t,n,r){return n.reduce(function(o,i){var s=Object.keys(i).filter(function(u){return!(u===re.INNER_HTML||u===re.CSS_TEXT)}).reduce(function(u,c){var d=typeof i[c]>"u"?c:c+'="'+ru(i[c],r)+'"';return u?u+" "+d:d},""),a=i.innerHTML||i.cssText||"",l=Rb.indexOf(t)===-1;return o+"<"+t+" "+ft+'="true" '+s+(l?"/>":">"+a+"")},"")},sy=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(r,o){return r[ys[o]||o]=t[o],r},n)},Gb=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(r,o){return r[Nb[o]||o]=t[o],r},n)},Kb=function(t,n,r){var o,i=(o={key:n},o[ft]=!0,o),s=sy(r,i);return[Y.createElement(F.TITLE,s,n)]},Yb=function(t,n){return n.map(function(r,o){var i,s=(i={key:o},i[ft]=!0,i);return Object.keys(r).forEach(function(a){var l=ys[a]||a;if(l===re.INNER_HTML||l===re.CSS_TEXT){var u=r.innerHTML||r.cssText;s.dangerouslySetInnerHTML={__html:u}}else s[l]=r[a]}),Y.createElement(t,s)})},Ct=function(t,n,r){switch(t){case F.TITLE:return{toComponent:function(){return Kb(t,n.title,n.titleAttributes)},toString:function(){return Wb(t,n.title,n.titleAttributes,r)}};case Mn.BODY:case Mn.HTML:return{toComponent:function(){return sy(n)},toString:function(){return iy(n)}};default:return{toComponent:function(){return Yb(t,n)},toString:function(){return Hb(t,n,r)}}}},ay=function(t){var n=t.baseTag,r=t.bodyAttributes,o=t.encode,i=t.htmlAttributes,s=t.linkTags,a=t.metaTags,l=t.noscriptTags,u=t.scriptTags,c=t.styleTags,d=t.title,f=d===void 0?"":d,g=t.titleAttributes;return{base:Ct(F.BASE,n,o),bodyAttributes:Ct(Mn.BODY,r,o),htmlAttributes:Ct(Mn.HTML,i,o),link:Ct(F.LINK,s,o),meta:Ct(F.META,a,o),noscript:Ct(F.NOSCRIPT,l,o),script:Ct(F.SCRIPT,u,o),style:Ct(F.STYLE,c,o),title:Ct(F.TITLE,{title:f,titleAttributes:g},o)}},Qb=function(t){var n,r;return r=n=function(o){Lb(i,o);function i(){return jb(this,i),Ob(this,o.apply(this,arguments))}return i.prototype.shouldComponentUpdate=function(a){return!Sb(this.props,a)},i.prototype.mapNestedChildrenToProps=function(a,l){if(!l)return null;switch(a.type){case F.SCRIPT:case F.NOSCRIPT:return{innerHTML:l};case F.STYLE:return{cssText:l}}throw new Error("<"+a.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},i.prototype.flattenArrayTypeChildren=function(a){var l,u=a.child,c=a.arrayTypeChildren,d=a.newChildProps,f=a.nestedChildren;return _e({},c,(l={},l[u.type]=[].concat(c[u.type]||[],[_e({},d,this.mapNestedChildrenToProps(u,f))]),l))},i.prototype.mapObjectTypeChildren=function(a){var l,u,c=a.child,d=a.newProps,f=a.newChildProps,g=a.nestedChildren;switch(c.type){case F.TITLE:return _e({},d,(l={},l[c.type]=g,l.titleAttributes=_e({},f),l));case F.BODY:return _e({},d,{bodyAttributes:_e({},f)});case F.HTML:return _e({},d,{htmlAttributes:_e({},f)})}return _e({},d,(u={},u[c.type]=_e({},f),u))},i.prototype.mapArrayTypeChildrenToProps=function(a,l){var u=_e({},l);return Object.keys(a).forEach(function(c){var d;u=_e({},u,(d={},d[c]=a[c],d))}),u},i.prototype.warnOnInvalidChildren=function(a,l){return!0},i.prototype.mapChildrenToProps=function(a,l){var u=this,c={};return Y.Children.forEach(a,function(d){if(!(!d||!d.props)){var f=d.props,g=f.children,w=vp(f,["children"]),x=Gb(w);switch(u.warnOnInvalidChildren(d,g),d.type){case F.LINK:case F.META:case F.NOSCRIPT:case F.SCRIPT:case F.STYLE:c=u.flattenArrayTypeChildren({child:d,arrayTypeChildren:c,newChildProps:x,nestedChildren:g});break;default:l=u.mapObjectTypeChildren({child:d,newProps:l,newChildProps:x,nestedChildren:g});break}}}),l=this.mapArrayTypeChildrenToProps(c,l),l},i.prototype.render=function(){var a=this.props,l=a.children,u=vp(a,["children"]),c=_e({},u);return l&&(c=this.mapChildrenToProps(l,c)),Y.createElement(t,c)},Mb(i,null,[{key:"canUseDOM",set:function(a){t.canUseDOM=a}}]),i}(Y.Component),n.propTypes={base:ne.object,bodyAttributes:ne.object,children:ne.oneOfType([ne.arrayOf(ne.node),ne.node]),defaultTitle:ne.string,defer:ne.bool,encodeSpecialCharacters:ne.bool,htmlAttributes:ne.object,link:ne.arrayOf(ne.object),meta:ne.arrayOf(ne.object),noscript:ne.arrayOf(ne.object),onChangeClientState:ne.func,script:ne.arrayOf(ne.object),style:ne.arrayOf(ne.object),title:ne.string,titleAttributes:ne.object,titleTemplate:ne.string},n.defaultProps={defer:!0,encodeSpecialCharacters:!0},n.peek=t.peek,n.rewind=function(){var o=t.rewind();return o||(o=ay({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),o},r},Xb=function(){return null},qb=mb(Vb,Ub,ay)(Xb),Rr=Qb(qb);Rr.renderStatic=Rr.rewind;const Zb=Cg("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Ln=Y.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},i)=>{const s=r?_w:"button";return h.jsx(s,{className:Tt(Zb({variant:t,size:n,className:e})),ref:i,...o})});Ln.displayName="Button";const Jb=()=>{const e=[{icon:Ul,title:"Feito com Amor",description:"Cada prato é preparado com carinho e dedicação"},{icon:$l,title:"Ambiente Familiar",description:"Um espaço acolhedor para você e sua família"},{icon:Bl,title:"Qualidade Garantida",description:"Ingredientes frescos e selecionados diariamente"}];return h.jsxs(h.Fragment,{children:[h.jsxs(Rr,{children:[h.jsx("title",{children:"Restaurante Comida Caseira - Sabor de Casa"}),h.jsx("meta",{name:"description",content:"Restaurante de comida caseira com pratos feitos com carinho. Venha saborear o melhor da culinária caseira na Rua Bonfim, 899."})]}),h.jsxs("section",{className:"relative overflow-hidden warm-gradient",children:[h.jsx("div",{className:"absolute inset-0 pattern-dots opacity-20"}),h.jsx("div",{className:"container mx-auto px-4 py-20 md:py-32 relative z-10",children:h.jsxs("div",{className:"grid md:grid-cols-2 gap-12 items-center",children:[h.jsxs(ee.div,{initial:{opacity:0,x:-50},animate:{opacity:1,x:0},transition:{duration:.8},className:"space-y-6",children:[h.jsxs("h1",{className:"text-5xl md:text-6xl font-bold text-gray-800 leading-tight",children:["Sabor de Casa,",h.jsx("span",{className:"block gradient-text",children:"Feito com Carinho"})]}),h.jsx("p",{className:"text-xl text-gray-700",children:"Descubra o verdadeiro sabor da comida caseira. Pratos preparados diariamente com ingredientes frescos e muito amor."}),h.jsxs("div",{className:"flex flex-wrap gap-4",children:[h.jsx(vr,{to:"/cardapio",children:h.jsxs(Ln,{className:"bg-amber-500 hover:bg-amber-600 text-white px-8 py-6 text-lg rounded-full shadow-lg hover:shadow-xl transition-all",children:["Ver Cardápio",h.jsx(cf,{className:"ml-2 w-5 h-5"})]})}),h.jsx(vr,{to:"/contato",children:h.jsx(Ln,{variant:"outline",className:"border-2 border-amber-500 text-amber-600 hover:bg-amber-50 px-8 py-6 text-lg rounded-full",children:"Fale Conosco"})})]})]}),h.jsxs(ee.div,{initial:{opacity:0,x:50},animate:{opacity:1,x:0},transition:{duration:.8,delay:.2},className:"relative",children:[h.jsxs("div",{className:"relative rounded-3xl overflow-hidden shadow-2xl",children:[h.jsx("img",{className:"w-full h-[500px] object-cover",alt:"Prato de comida caseira deliciosa",src:"https://images.unsplash.com/photo-1702827496392-abe9bcadcd07"}),h.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-amber-900/30 to-transparent"})]}),h.jsxs("div",{className:"absolute -bottom-6 -left-6 bg-white rounded-2xl shadow-xl p-6 max-w-xs",children:[h.jsx("p",{className:"text-sm text-gray-600 mb-2",children:"⭐⭐⭐⭐⭐"}),h.jsx("p",{className:"font-semibold text-gray-800",children:'"A melhor comida caseira da região!"'}),h.jsx("p",{className:"text-sm text-gray-500 mt-1",children:"- Cliente Satisfeito"})]})]})]})})]}),h.jsx("section",{className:"py-20 bg-white",children:h.jsxs("div",{className:"container mx-auto px-4",children:[h.jsxs(ee.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"text-center mb-16",children:[h.jsx("h2",{className:"text-4xl md:text-5xl font-bold text-gray-800 mb-4",children:"Por Que Nos Escolher?"}),h.jsx("p",{className:"text-xl text-gray-600 max-w-2xl mx-auto",children:"Mais do que um restaurante, somos uma família que ama cozinhar"})]}),h.jsx("div",{className:"grid md:grid-cols-3 gap-8",children:e.map((t,n)=>h.jsxs(ee.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:n*.1},className:"bg-gradient-to-br from-amber-50 to-yellow-50 rounded-2xl p-8 hover:shadow-xl transition-shadow",children:[h.jsx("div",{className:"bg-gradient-to-br from-amber-400 to-yellow-500 w-16 h-16 rounded-full flex items-center justify-center mb-6",children:h.jsx(t.icon,{className:"w-8 h-8 text-white"})}),h.jsx("h3",{className:"text-2xl font-bold text-gray-800 mb-3",children:t.title}),h.jsx("p",{className:"text-gray-600",children:t.description})]},n))})]})}),h.jsxs("section",{className:"py-20 warm-gradient relative overflow-hidden",children:[h.jsx("div",{className:"absolute inset-0 pattern-dots opacity-10"}),h.jsx("div",{className:"container mx-auto px-4 text-center relative z-10",children:h.jsxs(ee.div,{initial:{opacity:0,scale:.9},whileInView:{opacity:1,scale:1},viewport:{once:!0},transition:{duration:.6},className:"max-w-3xl mx-auto space-y-6",children:[h.jsx("h2",{className:"text-4xl md:text-5xl font-bold text-gray-800",children:"Venha Nos Visitar!"}),h.jsx("p",{className:"text-xl text-gray-700",children:"Estamos esperando por você na Rua Bonfim, 899. Traga sua família e amigos para uma experiência inesquecível."}),h.jsx(vr,{to:"/contato",children:h.jsxs(Ln,{className:"bg-amber-500 hover:bg-amber-600 text-white px-10 py-6 text-lg rounded-full shadow-lg hover:shadow-xl transition-all",children:["Como Chegar",h.jsx(cf,{className:"ml-2 w-5 h-5"})]})})]})})]})]})},ek=()=>{const e=[{icon:Ul,title:"Paixão pela Culinária",description:"Cada receita é preparada com amor e dedicação, mantendo as tradições da comida caseira brasileira."},{icon:$l,title:"Família em Primeiro Lugar",description:"Nosso restaurante é um espaço onde famílias se reúnem para compartilhar momentos especiais."},{icon:Bl,title:"Qualidade Superior",description:"Selecionamos cuidadosamente os melhores ingredientes frescos para garantir sabor autêntico."},{icon:dc,title:"Tradição e Experiência",description:"Anos de experiência preparando pratos que aquecem o coração e alimentam a alma."}];return h.jsxs(h.Fragment,{children:[h.jsxs(Rr,{children:[h.jsx("title",{children:"Sobre Nós - Restaurante Comida Caseira"}),h.jsx("meta",{name:"description",content:"Conheça a história do Restaurante Comida Caseira. Tradição, qualidade e amor em cada prato servido."})]}),h.jsx("section",{className:"warm-gradient py-20",children:h.jsx("div",{className:"container mx-auto px-4",children:h.jsxs(ee.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8},className:"text-center max-w-3xl mx-auto",children:[h.jsx("h1",{className:"text-5xl md:text-6xl font-bold text-gray-800 mb-6",children:"Nossa História"}),h.jsx("p",{className:"text-xl text-gray-700",children:"Uma jornada de sabor, tradição e amor pela comida caseira"})]})})}),h.jsx("section",{className:"py-20 bg-white",children:h.jsx("div",{className:"container mx-auto px-4",children:h.jsxs("div",{className:"grid md:grid-cols-2 gap-12 items-center",children:[h.jsx(ee.div,{initial:{opacity:0,x:-50},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.8},children:h.jsx("img",{className:"w-full h-[500px] object-cover rounded-3xl shadow-2xl",alt:"Interior acolhedor do restaurante",src:"https://images.unsplash.com/photo-1687580712324-ba65e882514a"})}),h.jsxs(ee.div,{initial:{opacity:0,x:50},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.8},className:"space-y-6",children:[h.jsx("h2",{className:"text-4xl font-bold text-gray-800",children:"Tradição que Aquece o Coração"}),h.jsx("p",{className:"text-lg text-gray-600 leading-relaxed",children:"O Restaurante Comida Caseira nasceu do sonho de trazer o verdadeiro sabor da comida feita em casa para todos. Inspirados nas receitas de família passadas de geração em geração, criamos um espaço onde cada prato conta uma história."}),h.jsx("p",{className:"text-lg text-gray-600 leading-relaxed",children:"Nossa missão é simples: fazer você se sentir em casa. Desde o primeiro dia, nos dedicamos a preparar refeições com ingredientes frescos e selecionados, mantendo o sabor autêntico que só a comida caseira pode oferecer."}),h.jsx("p",{className:"text-lg text-gray-600 leading-relaxed",children:"Mais do que um restaurante, somos uma família que ama cozinhar e receber bem. Cada cliente que entra pela nossa porta é tratado como parte da nossa família."})]})]})})}),h.jsx("section",{className:"py-20 bg-gradient-to-br from-amber-50 to-yellow-50",children:h.jsxs("div",{className:"container mx-auto px-4",children:[h.jsxs(ee.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"text-center mb-16",children:[h.jsx("h2",{className:"text-4xl md:text-5xl font-bold text-gray-800 mb-4",children:"Nossos Valores"}),h.jsx("p",{className:"text-xl text-gray-600 max-w-2xl mx-auto",children:"Os princípios que guiam cada prato que servimos"})]}),h.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-8",children:e.map((t,n)=>h.jsxs(ee.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:n*.1},className:"bg-white rounded-2xl p-8 shadow-lg hover:shadow-xl transition-shadow",children:[h.jsx("div",{className:"bg-gradient-to-br from-amber-400 to-yellow-500 w-16 h-16 rounded-full flex items-center justify-center mb-6 mx-auto",children:h.jsx(t.icon,{className:"w-8 h-8 text-white"})}),h.jsx("h3",{className:"text-xl font-bold text-gray-800 mb-3 text-center",children:t.title}),h.jsx("p",{className:"text-gray-600 text-center",children:t.description})]},n))})]})}),h.jsx("section",{className:"py-20 bg-white",children:h.jsxs("div",{className:"container mx-auto px-4",children:[h.jsxs(ee.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"text-center mb-16",children:[h.jsx("h2",{className:"text-4xl md:text-5xl font-bold text-gray-800 mb-4",children:"Nossa Equipe"}),h.jsx("p",{className:"text-xl text-gray-600 max-w-2xl mx-auto",children:"Profissionais apaixonados por servir o melhor"})]}),h.jsxs("div",{className:"grid md:grid-cols-3 gap-8 max-w-5xl mx-auto",children:[h.jsxs(ee.div,{initial:{opacity:0,scale:.9},whileInView:{opacity:1,scale:1},viewport:{once:!0},transition:{duration:.6},className:"text-center",children:[h.jsxs("div",{className:"relative mb-6 mx-auto w-48 h-48",children:[h.jsx("img",{className:"w-full h-full object-cover rounded-full shadow-xl",alt:"Chef principal do restaurante",src:"https://images.unsplash.com/photo-1597272423180-4bd0f8c562d1"}),h.jsx("div",{className:"absolute -bottom-2 -right-2 bg-gradient-to-br from-amber-400 to-yellow-500 rounded-full p-3",children:h.jsx(Bl,{className:"w-6 h-6 text-white"})})]}),h.jsx("h3",{className:"text-2xl font-bold text-gray-800 mb-2",children:"Chef Maria Silva"}),h.jsx("p",{className:"text-amber-600 font-medium mb-3",children:"Chef Principal"}),h.jsx("p",{className:"text-gray-600",children:"20 anos de experiência em culinária caseira brasileira"})]}),h.jsxs(ee.div,{initial:{opacity:0,scale:.9},whileInView:{opacity:1,scale:1},viewport:{once:!0},transition:{duration:.6,delay:.1},className:"text-center",children:[h.jsxs("div",{className:"relative mb-6 mx-auto w-48 h-48",children:[h.jsx("img",{className:"w-full h-full object-cover rounded-full shadow-xl",alt:"Sous chef do restaurante",src:"https://images.unsplash.com/photo-1622021142947-da7dedc7c39a"}),h.jsx("div",{className:"absolute -bottom-2 -right-2 bg-gradient-to-br from-amber-400 to-yellow-500 rounded-full p-3",children:h.jsx(Ul,{className:"w-6 h-6 text-white"})})]}),h.jsx("h3",{className:"text-2xl font-bold text-gray-800 mb-2",children:"João Santos"}),h.jsx("p",{className:"text-amber-600 font-medium mb-3",children:"Sous Chef"}),h.jsx("p",{className:"text-gray-600",children:"Especialista em pratos tradicionais e receitas de família"})]}),h.jsxs(ee.div,{initial:{opacity:0,scale:.9},whileInView:{opacity:1,scale:1},viewport:{once:!0},transition:{duration:.6,delay:.2},className:"text-center",children:[h.jsxs("div",{className:"relative mb-6 mx-auto w-48 h-48",children:[h.jsx("img",{className:"w-full h-full object-cover rounded-full shadow-xl",alt:"Gerente do restaurante",src:"https://images.unsplash.com/photo-1597272423180-4bd0f8c562d1"}),h.jsx("div",{className:"absolute -bottom-2 -right-2 bg-gradient-to-br from-amber-400 to-yellow-500 rounded-full p-3",children:h.jsx($l,{className:"w-6 h-6 text-white"})})]}),h.jsx("h3",{className:"text-2xl font-bold text-gray-800 mb-2",children:"Ana Costa"}),h.jsx("p",{className:"text-amber-600 font-medium mb-3",children:"Gerente"}),h.jsx("p",{className:"text-gray-600",children:"Dedicada a proporcionar a melhor experiência aos clientes"})]})]})]})})]})};var tk=du[" useId ".trim().toString()]||(()=>{}),nk=0;function ly(e){const[t,n]=y.useState(tk());return br(()=>{e||n(r=>r??String(nk++))},[e]),e||(t?`radix-${t}`:"")}var rk=y.createContext(void 0);function uy(e){const t=y.useContext(rk);return e||t||"ltr"}var Va="rovingFocusGroup.onEntryFocus",ok={bubbles:!1,cancelable:!0},Xo="RovingFocusGroup",[su,cy,ik]=qm(Xo),[sk,dy]=Ds(Xo,[ik]),[ak,lk]=sk(Xo),fy=y.forwardRef((e,t)=>h.jsx(su.Provider,{scope:e.__scopeRovingFocusGroup,children:h.jsx(su.Slot,{scope:e.__scopeRovingFocusGroup,children:h.jsx(uk,{...e,ref:t})})}));fy.displayName=Xo;var uk=y.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:s,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:l,onEntryFocus:u,preventScrollOnEntryFocus:c=!1,...d}=e,f=y.useRef(null),g=un(t,f),w=uy(i),[x,S]=sc({prop:s,defaultProp:a??null,onChange:l,caller:Xo}),[v,p]=y.useState(!1),m=cn(u),T=cy(n),C=y.useRef(!1),[b,E]=y.useState(0);return y.useEffect(()=>{const P=f.current;if(P)return P.addEventListener(Va,m),()=>P.removeEventListener(Va,m)},[m]),h.jsx(ak,{scope:n,orientation:r,dir:w,loop:o,currentTabStopId:x,onItemFocus:y.useCallback(P=>S(P),[S]),onItemShiftTab:y.useCallback(()=>p(!0),[]),onFocusableItemAdd:y.useCallback(()=>E(P=>P+1),[]),onFocusableItemRemove:y.useCallback(()=>E(P=>P-1),[]),children:h.jsx(Re.div,{tabIndex:v||b===0?-1:0,"data-orientation":r,...d,ref:g,style:{outline:"none",...e.style},onMouseDown:ce(e.onMouseDown,()=>{C.current=!0}),onFocus:ce(e.onFocus,P=>{const R=!C.current;if(P.target===P.currentTarget&&R&&!v){const j=new CustomEvent(Va,ok);if(P.currentTarget.dispatchEvent(j),!j.defaultPrevented){const U=T().filter(V=>V.focusable),I=U.find(V=>V.active),q=U.find(V=>V.id===x),G=[I,q,...U].filter(Boolean).map(V=>V.ref.current);my(G,c)}}C.current=!1}),onBlur:ce(e.onBlur,()=>p(!1))})})}),py="RovingFocusGroupItem",hy=y.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,children:s,...a}=e,l=ly(),u=i||l,c=lk(py,n),d=c.currentTabStopId===u,f=cy(n),{onFocusableItemAdd:g,onFocusableItemRemove:w,currentTabStopId:x}=c;return y.useEffect(()=>{if(r)return g(),()=>w()},[r,g,w]),h.jsx(su.ItemSlot,{scope:n,id:u,focusable:r,active:o,children:h.jsx(Re.span,{tabIndex:d?0:-1,"data-orientation":c.orientation,...a,ref:t,onMouseDown:ce(e.onMouseDown,S=>{r?c.onItemFocus(u):S.preventDefault()}),onFocus:ce(e.onFocus,()=>c.onItemFocus(u)),onKeyDown:ce(e.onKeyDown,S=>{if(S.key==="Tab"&&S.shiftKey){c.onItemShiftTab();return}if(S.target!==S.currentTarget)return;const v=fk(S,c.orientation,c.dir);if(v!==void 0){if(S.metaKey||S.ctrlKey||S.altKey||S.shiftKey)return;S.preventDefault();let m=f().filter(T=>T.focusable).map(T=>T.ref.current);if(v==="last")m.reverse();else if(v==="prev"||v==="next"){v==="prev"&&m.reverse();const T=m.indexOf(S.currentTarget);m=c.loop?pk(m,T+1):m.slice(T+1)}setTimeout(()=>my(m))}}),children:typeof s=="function"?s({isCurrentTabStop:d,hasTabStop:x!=null}):s})})});hy.displayName=py;var ck={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function dk(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function fk(e,t,n){const r=dk(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return ck[r]}function my(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function pk(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var hk=fy,mk=hy,Ks="Tabs",[gk,bk]=Ds(Ks,[dy]),gy=dy(),[vk,Ic]=gk(Ks),vy=y.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:i,orientation:s="horizontal",dir:a,activationMode:l="automatic",...u}=e,c=uy(a),[d,f]=sc({prop:r,onChange:o,defaultProp:i??"",caller:Ks});return h.jsx(vk,{scope:n,baseId:ly(),value:d,onValueChange:f,orientation:s,dir:c,activationMode:l,children:h.jsx(Re.div,{dir:c,"data-orientation":s,...u,ref:t})})});vy.displayName=Ks;var yy="TabsList",xy=y.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,i=Ic(yy,n),s=gy(n);return h.jsx(hk,{asChild:!0,...s,orientation:i.orientation,dir:i.dir,loop:r,children:h.jsx(Re.div,{role:"tablist","aria-orientation":i.orientation,...o,ref:t})})});xy.displayName=yy;var wy="TabsTrigger",Sy=y.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...i}=e,s=Ic(wy,n),a=gy(n),l=Ey(s.baseId,r),u=Py(s.baseId,r),c=r===s.value;return h.jsx(mk,{asChild:!0,...a,focusable:!o,active:c,children:h.jsx(Re.button,{type:"button",role:"tab","aria-selected":c,"aria-controls":u,"data-state":c?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:l,...i,ref:t,onMouseDown:ce(e.onMouseDown,d=>{!o&&d.button===0&&d.ctrlKey===!1?s.onValueChange(r):d.preventDefault()}),onKeyDown:ce(e.onKeyDown,d=>{[" ","Enter"].includes(d.key)&&s.onValueChange(r)}),onFocus:ce(e.onFocus,()=>{const d=s.activationMode!=="manual";!c&&!o&&d&&s.onValueChange(r)})})})});Sy.displayName=wy;var Ty="TabsContent",Cy=y.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:i,...s}=e,a=Ic(Ty,n),l=Ey(a.baseId,r),u=Py(a.baseId,r),c=r===a.value,d=y.useRef(c);return y.useEffect(()=>{const f=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(f)},[]),h.jsx(ic,{present:o||c,children:({present:f})=>h.jsx(Re.div,{"data-state":c?"active":"inactive","data-orientation":a.orientation,role:"tabpanel","aria-labelledby":l,hidden:!f,id:u,tabIndex:0,...s,ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0},children:f&&i})})});Cy.displayName=Ty;function Ey(e,t){return`${e}-trigger-${t}`}function Py(e,t){return`${e}-content-${t}`}var yk=vy,by=xy,ky=Sy,Ny=Cy;const xk=yk,Ry=Y.forwardRef(({className:e,...t},n)=>h.jsx(by,{ref:n,className:Tt("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...t}));Ry.displayName=by.displayName;const Ay=Y.forwardRef(({className:e,...t},n)=>h.jsx(ky,{ref:n,className:Tt("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",e),...t}));Ay.displayName=ky.displayName;const jy=Y.forwardRef(({className:e,...t},n)=>h.jsx(Ny,{ref:n,className:Tt("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));jy.displayName=Ny.displayName;const wk=()=>{const{toast:e}=fc(),[t,n]=y.useState("pratos-principais"),r={"pratos-principais":[{name:"Feijoada Completa",description:"Feijoada tradicional com arroz, couve, farofa e laranja",price:"R$ 35,00"},{name:"Bife à Parmegiana",description:"Bife empanado com molho de tomate, queijo e batata frita",price:"R$ 32,00"},{name:"Frango Assado",description:"Frango assado com batatas e legumes da estação",price:"R$ 28,00"},{name:"Picadinho de Carne",description:"Picadinho de carne com arroz, feijão e batata palha",price:"R$ 30,00"},{name:"Peixe Grelhado",description:"Peixe fresco grelhado com arroz e salada",price:"R$ 34,00"},{name:"Strogonoff de Frango",description:"Strogonoff cremoso com arroz e batata palha",price:"R$ 29,00"}],acompanhamentos:[{name:"Arroz Branco",description:"Arroz soltinho preparado na hora",price:"R$ 8,00"},{name:"Feijão Tropeiro",description:"Feijão com bacon, linguiça e farinha",price:"R$ 12,00"},{name:"Batata Frita",description:"Batatas crocantes fritas na hora",price:"R$ 10,00"},{name:"Salada Mista",description:"Alface, tomate, cenoura e pepino frescos",price:"R$ 9,00"},{name:"Farofa",description:"Farofa crocante com bacon e ovos",price:"R$ 11,00"},{name:"Purê de Batata",description:"Purê cremoso e suave",price:"R$ 10,00"}],sobremesas:[{name:"Pudim de Leite",description:"Pudim caseiro com calda de caramelo",price:"R$ 12,00"},{name:"Brigadeiro Gourmet",description:"Brigadeiros artesanais (3 unidades)",price:"R$ 10,00"},{name:"Mousse de Maracujá",description:"Mousse leve e refrescante",price:"R$ 11,00"},{name:"Bolo de Chocolate",description:"Fatia generosa de bolo caseiro",price:"R$ 13,00"},{name:"Sorvete Artesanal",description:"Duas bolas de sorvete (sabores variados)",price:"R$ 14,00"}],bebidas:[{name:"Suco Natural",description:"Laranja, limão, maracujá ou abacaxi (500ml)",price:"R$ 8,00"},{name:"Refrigerante",description:"Lata 350ml (diversos sabores)",price:"R$ 6,00"},{name:"Água Mineral",description:"Garrafa 500ml",price:"R$ 4,00"},{name:"Café Expresso",description:"Café fresco e aromático",price:"R$ 5,00"},{name:"Chá Gelado",description:"Chá gelado de limão ou pêssego (500ml)",price:"R$ 7,00"}]},o={"pratos-principais":"Pratos Principais",acompanhamentos:"Acompanhamentos",sobremesas:"Sobremesas",bebidas:"Bebidas"},i=s=>{e({title:"🚧 Pedidos Online em Breve!",description:`${s} adicionado à sua lista! Sistema de pedidos será implementado em breve. Por enquanto, ligue para 99 99999999 para fazer seu pedido! 🚀`,duration:5e3})};return h.jsxs(h.Fragment,{children:[h.jsxs(Rr,{children:[h.jsx("title",{children:"Nosso Cardápio - Restaurante Comida Caseira"}),h.jsx("meta",{name:"description",content:"Confira nosso cardápio completo com pratos principais, acompanhamentos, sobremesas e bebidas. Comida caseira de qualidade com preços justos."})]}),h.jsx("section",{className:"warm-gradient py-20",children:h.jsx("div",{className:"container mx-auto px-4",children:h.jsxs(ee.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8},className:"text-center max-w-3xl mx-auto",children:[h.jsx("h1",{className:"text-5xl md:text-6xl font-bold text-gray-800 mb-6",children:"Nosso Cardápio"}),h.jsx("p",{className:"text-xl text-gray-700",children:"Pratos deliciosos preparados com ingredientes frescos e muito carinho"})]})})}),h.jsx("section",{className:"py-20 bg-white",children:h.jsx("div",{className:"container mx-auto px-4",children:h.jsxs(xk,{value:t,onValueChange:n,className:"w-full max-w-6xl mx-auto",children:[h.jsx(Ry,{className:"grid w-full grid-cols-2 md:grid-cols-4 mb-12 bg-amber-50 p-2 rounded-2xl",children:Object.keys(r).map(s=>h.jsx(Ay,{value:s,className:"rounded-xl data-[state=active]:bg-gradient-to-br data-[state=active]:from-amber-400 data-[state=active]:to-yellow-500 data-[state=active]:text-white font-semibold transition-all",children:o[s]},s))}),Object.entries(r).map(([s,a])=>h.jsx(jy,{value:s,className:"mt-0",children:h.jsx("div",{className:"grid md:grid-cols-2 gap-6",children:a.map((l,u)=>h.jsxs(ee.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.4,delay:u*.05},className:"bg-gradient-to-br from-amber-50 to-yellow-50 rounded-2xl p-6 hover:shadow-lg transition-shadow border border-amber-100",children:[h.jsxs("div",{className:"flex justify-between items-start mb-3",children:[h.jsx("h3",{className:"text-xl font-bold text-gray-800",children:l.name}),h.jsx("span",{className:"text-xl font-bold text-amber-600 ml-4",children:l.price})]}),h.jsx("p",{className:"text-gray-600 mb-4",children:l.description}),h.jsxs(Ln,{onClick:()=>i(l.name),className:"w-full bg-gradient-to-r from-amber-400 to-yellow-500 hover:from-amber-500 hover:to-yellow-600 text-white rounded-xl",children:[h.jsx(AS,{className:"w-4 h-4 mr-2"}),"Pedir Agora"]})]},u))})},s))]})})}),h.jsx("section",{className:"py-20 bg-gradient-to-br from-amber-50 to-yellow-50",children:h.jsx("div",{className:"container mx-auto px-4 text-center",children:h.jsxs(ee.div,{initial:{opacity:0,scale:.9},whileInView:{opacity:1,scale:1},viewport:{once:!0},transition:{duration:.6},className:"max-w-3xl mx-auto space-y-6",children:[h.jsx("h2",{className:"text-4xl md:text-5xl font-bold text-gray-800",children:"Faça Seu Pedido!"}),h.jsxs("p",{className:"text-xl text-gray-700",children:["Ligue agora para ",h.jsx("span",{className:"font-bold text-amber-600",children:"99 99999999"})," e faça seu pedido. Entregamos na sua casa!"]}),h.jsx("div",{className:"flex flex-wrap gap-4 justify-center",children:h.jsx(Ln,{className:"bg-gradient-to-r from-amber-400 to-yellow-500 hover:from-amber-500 hover:to-yellow-600 text-white px-8 py-6 text-lg rounded-full shadow-lg",children:"Ligar Agora"})})]})})})]})},Sk=()=>{const{toast:e}=fc(),[t,n]=y.useState({name:"",email:"",phone:"",message:""}),r=s=>{n({...t,[s.target.name]:s.target.value})},o=s=>{s.preventDefault(),e({title:"🚧 Formulário em Desenvolvimento!",description:"Obrigado pelo interesse! Por enquanto, entre em contato pelo telefone 99 99999999. Sistema de mensagens será implementado em breve! 🚀",duration:5e3}),n({name:"",email:"",phone:"",message:""})},i=[{icon:Eg,title:"Endereço",content:"Rua Bonfim, número 899",link:null},{icon:Pg,title:"Telefone",content:"99 99999999",link:"tel:99999999999"},{icon:kS,title:"Email",content:"contato@comidacaseira.com.br",link:"mailto:contato@comidacaseira.com.br"},{icon:dc,title:"Horário de Funcionamento",content:"Seg-Sex: 11h-15h | Sáb: 11h-16h",link:null}];return h.jsxs(h.Fragment,{children:[h.jsxs(Rr,{children:[h.jsx("title",{children:"Contato - Restaurante Comida Caseira"}),h.jsx("meta",{name:"description",content:"Entre em contato com o Restaurante Comida Caseira. Estamos na Rua Bonfim, 899. Telefone: 99 99999999. Venha nos visitar!"})]}),h.jsx("section",{className:"warm-gradient py-20",children:h.jsx("div",{className:"container mx-auto px-4",children:h.jsxs(ee.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8},className:"text-center max-w-3xl mx-auto",children:[h.jsx("h1",{className:"text-5xl md:text-6xl font-bold text-gray-800 mb-6",children:"Entre em Contato"}),h.jsx("p",{className:"text-xl text-gray-700",children:"Estamos aqui para atender você. Fale conosco!"})]})})}),h.jsx("section",{className:"py-20 bg-white",children:h.jsx("div",{className:"container mx-auto px-4",children:h.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 max-w-6xl mx-auto",children:[h.jsxs(ee.div,{initial:{opacity:0,x:-50},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.8},className:"space-y-8",children:[h.jsxs("div",{children:[h.jsx("h2",{className:"text-3xl font-bold text-gray-800 mb-6",children:"Informações de Contato"}),h.jsx("p",{className:"text-gray-600 mb-8",children:"Visite-nos, ligue ou envie uma mensagem. Estamos sempre prontos para receber você!"})]}),h.jsx("div",{className:"space-y-6",children:i.map((s,a)=>h.jsxs(ee.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:a*.1},className:"flex items-start space-x-4 bg-gradient-to-br from-amber-50 to-yellow-50 p-6 rounded-2xl hover:shadow-lg transition-shadow",children:[h.jsx("div",{className:"bg-gradient-to-br from-amber-400 to-yellow-500 p-3 rounded-full flex-shrink-0",children:h.jsx(s.icon,{className:"w-6 h-6 text-white"})}),h.jsxs("div",{children:[h.jsx("h3",{className:"font-bold text-gray-800 mb-1",children:s.title}),s.link?h.jsx("a",{href:s.link,className:"text-gray-600 hover:text-amber-600 transition-colors",children:s.content}):h.jsx("p",{className:"text-gray-600",children:s.content})]})]},a))})]}),h.jsxs(ee.div,{initial:{opacity:0,x:50},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.8},className:"bg-gradient-to-br from-amber-50 to-yellow-50 p-8 rounded-3xl shadow-xl",children:[h.jsx("h2",{className:"text-3xl font-bold text-gray-800 mb-6",children:"Envie uma Mensagem"}),h.jsxs("form",{onSubmit:o,className:"space-y-6",children:[h.jsxs("div",{children:[h.jsx("label",{htmlFor:"name",className:"block text-sm font-semibold text-gray-700 mb-2",children:"Nome Completo"}),h.jsx("input",{type:"text",id:"name",name:"name",value:t.name,onChange:r,required:!0,className:"w-full px-4 py-3 rounded-xl border border-amber-200 focus:border-amber-400 focus:ring-2 focus:ring-amber-200 outline-none transition-all",placeholder:"Seu nome"})]}),h.jsxs("div",{children:[h.jsx("label",{htmlFor:"email",className:"block text-sm font-semibold text-gray-700 mb-2",children:"Email"}),h.jsx("input",{type:"email",id:"email",name:"email",value:t.email,onChange:r,required:!0,className:"w-full px-4 py-3 rounded-xl border border-amber-200 focus:border-amber-400 focus:ring-2 focus:ring-amber-200 outline-none transition-all",placeholder:"seu@email.com"})]}),h.jsxs("div",{children:[h.jsx("label",{htmlFor:"phone",className:"block text-sm font-semibold text-gray-700 mb-2",children:"Telefone"}),h.jsx("input",{type:"tel",id:"phone",name:"phone",value:t.phone,onChange:r,required:!0,className:"w-full px-4 py-3 rounded-xl border border-amber-200 focus:border-amber-400 focus:ring-2 focus:ring-amber-200 outline-none transition-all",placeholder:"(99) 99999-9999"})]}),h.jsxs("div",{children:[h.jsx("label",{htmlFor:"message",className:"block text-sm font-semibold text-gray-700 mb-2",children:"Mensagem"}),h.jsx("textarea",{id:"message",name:"message",value:t.message,onChange:r,required:!0,rows:"5",className:"w-full px-4 py-3 rounded-xl border border-amber-200 focus:border-amber-400 focus:ring-2 focus:ring-amber-200 outline-none transition-all resize-none",placeholder:"Como podemos ajudar você?"})]}),h.jsxs(Ln,{type:"submit",className:"w-full bg-gradient-to-r from-amber-400 to-yellow-500 hover:from-amber-500 hover:to-yellow-600 text-white py-6 text-lg rounded-xl shadow-lg hover:shadow-xl transition-all",children:[h.jsx(RS,{className:"w-5 h-5 mr-2"}),"Enviar Mensagem"]})]})]})]})})}),h.jsx("section",{className:"py-20 bg-gradient-to-br from-amber-50 to-yellow-50",children:h.jsxs("div",{className:"container mx-auto px-4",children:[h.jsxs(ee.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"text-center mb-12",children:[h.jsx("h2",{className:"text-4xl md:text-5xl font-bold text-gray-800 mb-4",children:"Como Chegar"}),h.jsx("p",{className:"text-xl text-gray-600",children:"Venha nos visitar na Rua Bonfim, 899"})]}),h.jsx(ee.div,{initial:{opacity:0,scale:.95},whileInView:{opacity:1,scale:1},viewport:{once:!0},transition:{duration:.6},className:"max-w-5xl mx-auto rounded-3xl overflow-hidden shadow-2xl",children:h.jsx("iframe",{src:"https://www.openstreetmap.org/export/embed.html?bbox=-46.6333,-23.5505,-46.6233,-23.5405&layer=mapnik&marker=-23.5455,-46.6283",width:"100%",height:"450",style:{border:0},allowFullScreen:"",loading:"lazy",referrerPolicy:"no-referrer-when-downgrade",title:"Localização do Restaurante Comida Caseira"})})]})})]})};function Tk(){return h.jsx(rw,{children:h.jsxs("div",{className:"min-h-screen flex flex-col",children:[h.jsx(nb,{}),h.jsx("main",{className:"flex-grow",children:h.jsxs(X1,{children:[h.jsx(Jr,{path:"/",element:h.jsx(Jb,{})}),h.jsx(Jr,{path:"/sobre",element:h.jsx(ek,{})}),h.jsx(Jr,{path:"/cardapio",element:h.jsx(wk,{})}),h.jsx(Jr,{path:"/contato",element:h.jsx(Sk,{})})]})}),h.jsx(rb,{}),h.jsx(VS,{})]})})}Fa.createRoot(document.getElementById("root")).render(h.jsx(Y.StrictMode,{children:h.jsx(Tk,{})}));